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.Npmresulting in aNConsole.UnusedArgumentExceptionby @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
requiredkeyword now correctly recognized: Properties using the C# 11requiredkeyword (viaRequiredMemberAttribute/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
WriteAccessorsetting to control property setter syntax (setvsinit). - New
JsonLibraryVersionsetting for controlling enum attribute generation with System.Text.Json. - Fixed
MinLengthvalidation 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
IncludeFieldsis enabled.
For the full list of changes, see the NJsonSchema v11.6.0 release notes.
New Contributors
- @ptasev made their first contribution in #5320
- @MeikelLP made their first contribution in #5337
- @adnanalbeda made their first contribution in #5283
- @copyleftproducts made their first contribution in #5315
- @Copilot made their first contribution in #5348
Full Changelog: v14.6.3...v14.7.0