Become a member!

DMVCFramework 3.2.0-boron - What's New

DMVCFramework 3.2.0-boron

Release Date: July 22, 2019

A landmark release with Delphi 10.4 Sydney support, full nullable types, and Swagger integration.


Major New Features

Delphi 10.4 Sydney Support

Full support for Delphi 10.4 Sydney including managed records and other new features.

Comprehensive Nullable Type Support

Complete nullable type system throughout the framework:

type
  TCustomer = class
  private
    FID: NullableInt32;
    FName: NullableString;
    FBirthDate: NullableTDateTime;
    FBalance: NullableCurrency;
  end;

Nullable types:

  • Properly handle NULL database values
  • Serialize to JSON as null
  • Support all primitive types

Swagger/OpenAPI Integration

Automatic API documentation generation:

Engine.AddMiddleware(TMVCSwaggerMiddleware.Create(
  '/api/docs',
  'My API',
  '1.0.0'
));

Access interactive documentation at /api/docs.

Multiple Name Case Options

Control JSON property naming:

[MVCNameCase(ncPascalCase)]  // FirstName
[MVCNameCase(ncCamelCase)]   // firstName
[MVCNameCase(ncSnakeCase)]   // first_name
[MVCNameCase(ncLowerCase)]   // firstname

ObjectDict Rendering Function

Simplified output handling:

Render(ObjectDict
  .Add('customers', CustomerList)
  .Add('count', CustomerList.Count)
  .Add('page', PageNumber)
);

Other Improvements

  • Server-Sent Events (SSE) support
  • Improved serialization performance
  • Better error handling
  • Extensive bug fixes


← Back to DMVCFramework

Comments

comments powered by Disqus