github RicoSuter/NSwag v14.7.0
NSwag v14.7.0 (NJsonSchema v11.6.0)

16 hours ago

What's Changed

  • Upgrade to NUKE 10 by @lahma in #5310
  • Upgrade to NUKE 10.1.0 by @lahma in #5314
  • Fix specifying runtime for NSwag.Npm resulting in a NConsole.UnusedArgumentException by @ptasev in #5320
  • fix: nullpointer by @MeikelLP in #5337
  • fix axios template: [object Object] is not valid JSON. by @adnanalbeda in #5283
  • Fix legacy document transformation by @copyleftproducts in #5315
  • Fix compile error in generated C# client when media type contains quotes by @bkoelman in #5345
  • Fix duplicate client/operation names when operation IDs contain multiple underscores by @Copilot in #5348
  • Update to NJsonSchema v11.6.0 and Namotion.Reflection v3.5.0 (v14.7.0) by @RicoSuter in #5357

NJsonSchema v11.6.0 (potentially breaking changes)

This release updates to NJsonSchema v11.6.0 and Namotion.Reflection v3.5.0, which include the following changes that may affect generated code:

  • C# 11 required keyword now correctly recognized: Properties using the C# 11 required keyword (via RequiredMemberAttribute / JsonRequiredAttribute) are now properly treated as required in the schema and generated code. Previously these were incorrectly treated as optional.
  • Removed extra blank line before class declarations in generated C# controller code (cosmetic).
  • New WriteAccessor setting to control property setter syntax (set vs init).
  • New JsonLibraryVersion setting for controlling enum attribute generation with System.Text.Json.
  • Fixed MinLength validation no longer incorrectly applied to DateTime properties.
  • Fixed nullable enum array detection for string enum converters.
  • Support for public fields with System.Text.Json when IncludeFields is enabled.

For the full list of changes, see the NJsonSchema v11.6.0 release notes.

New Contributors

Full Changelog: v14.6.3...v14.7.0

Don't miss a new NSwag release

NewReleases is sending notifications on new releases.