github RicoSuter/NSwag NSwag-Build-1027
NSwag v11.20.0 (Build 1027)

latest releases: v14.1.0, v14.0.8, v14.0.7...
6 years ago

Breaking changes:

  • Use versioned API Explorer when available (#1622)
  • Optional/required parameters: Use RequireParametersWithoutDefault fallback setting and API Explorer (#1606)
    • We are now using the correct behavior for required parameters (provided by API Explorer). This might break some users, to enable the old behavior enable the RequireParametersWithoutDefault settings
    • In ASP.NET Core, set MvcOptions.AllowEmptyInputInBodyModelBinding to true to allow null as body params
    • Use the [BindRequire] attribute to make a parameter required, otherwise they are optional by default (before they were optional when they had a default value)
  • Fix document template handling
    • Breaking change: If a template is defined then the title, description and version settings are ignored
  • OpenAPI 3 generation is greatly improved and may change the generated code
    • When using latest code generators the output should be stable
  • Inheritance handling has improved so that all schemas are in allOf (may be a breaking change with 3rd party tools)
  • Deprecated reflection based middlewares (UseSwagger*()) and Swagger UI v2 (UseSwaggerUi())
  • Updated to NJsonSchema v9.11, see https://github.com/RSuter/NJsonSchema/releases/tag/NSwag-Build-1849

New features:

Bug fixes and patches:

  • RxJS: Import "from" only if needed, closes #1533 (#1637)
  • Fix assembly path lookup, closes #1630
  • Set Content-Type only if request has body parameter, closes #1634

Don't miss a new NSwag release

NewReleases is sending notifications on new releases.