diff --git a/sources/MVCFramework.Middleware.Swagger.pas b/sources/MVCFramework.Middleware.Swagger.pas index 9bed0c2a..fc319ec0 100644 --- a/sources/MVCFramework.Middleware.Swagger.pas +++ b/sources/MVCFramework.Middleware.Swagger.pas @@ -340,7 +340,7 @@ begin SortApiPaths(LSwagDoc); LSwagDoc.GenerateSwaggerJson; - InternalRender(LSwagDoc.SwaggerJson.Format, AContext); + InternalRender(LSwagDoc.SwaggerJson.ToJSON, AContext); AHandled := True; finally