Releases: RicoSuter/NSwag
Releases · RicoSuter/NSwag
v14.1.0
What's Changed
- Updated to NJsonSchema v11.0.2
- Fixed: impossible to generate exception classes for non-first client by @bkoelman in #4891
- Restores support for instance-based JSON serializer settings in a non-breaking way by @bkoelman in #4888
- Only reference Microsoft.Extensions.PlatformAbstractions in .NET 6+ b… by @Numpsy in #4785
- Might be breaking change: Remove NET 7 support by @lahma in #4896
New Contributors
Full Changelog: v14.0.8...v14.1.0
NSwag v14.0.8
What's Changed
- Update NJS to v11.0.1 by @RicoSuter in #4913
- Update README.md: use headers for linkability by @0liver in #4835
- use GetValues method instead of GetNames by @testfirstcoder in #4828
- Expose OpenApiOperation.Tags in OperationModelBase by @fauzanzaid in #4807
- Replace collection length checks for compatibility by @jake-carpenter in #4904
New Contributors
- @0liver made their first contribution in #4835
- @testfirstcoder made their first contribution in #4828
- @fauzanzaid made their first contribution in #4807
- @jake-carpenter made their first contribution in #4904
Full Changelog: v14.0.7...v14.0.8
NSwag v14.0.7
Full Changelog: v14.0.6...v14.0.7
NSwag v14.0.6
Broken version: Newtonsoft.Json options are not loaded correctly, please use v14.0.7
- Fixes in CSharp generator
Full Changelog: v14.0.5...v14.0.6
NSwag v14.0.5
Broken version: Newtonsoft.Json options are not loaded correctly, please use v14.0.7
- Fix for WithOpenApi() bug
NSwag v14.0.4
Broken version: Newtonsoft.Json options are not loaded correctly, please use v14.0.7
- Improve minimal API support (WithOpenApi())
- Some minor fixes
Full Changelog: v14.0.4...v14.0.4
NSwag v14.0.3
What's Changed
- Annotate BaseUrl set with MemberNotNull to prevent CS8618. by @powercode in #4739
- Upgrade to NUKE 8 by @lahma in #4721
- Made GenerateControllerName virtual by @romfir in #4726
- Fixed duplicated variableName generation in DefaultParameterNameGenerator by @romfir in #4725
- Fix missing _baseUrl field and BaseUrl property
New Contributors
- @powercode made their first contribution in #4739
- @romfir made their first contribution in #4726
Full Changelog: v14.0.2...v14.0.3
NSwag v14.0.2
- Minor fix in the Swagger UI (revert and improve #4184)
NSwag v14.0.1
Minor fixes:
- fixed readme code sample, #4667
- build: fix .net8 target while publishing artifacts, #4680
- Fix GenerateNSwagTypeScript target, #4687
- Fix missing assignment of base URL, #4691
- Disable warning CS8625 "Cannot convert null literal to non-nullable reference type." in generated code, #4656
- Fix generated C# clients using base URL, #4674
NSwag v14.0.0
See #4524
NSwag v14
Breaking changes
- NJsonSchema generator settings moved from being directly on the generator settings to the "SchemaSettings" property.
- nswag.json now only supports .csproj based specification generation (reflection/assembly based removed, only aspnetcore2openapi)
- Now only supports .NET Standard 2.0, .NET 4.6.2, .NET Core 3.1, .NET 5, .NET 7 and up
- Requires latest Newtonsoft.Json v13.0.0.3
- Removed many deprecated properties, settings and methods (marked a long time as obsolete)
- Removed WebApiToOpenApiCommand:
- Use the WebApiOpenApiDocumentGenerator to build your own CLI referencing controllers project to generate OpenAPI without starting the app
- Renamed UseSwaggerUi3 to UseSwaggerUi (v2 has been removed)
NJsonSchema v11
Breaking changes
- All Newtonsoft.Json based generators, converters (e.g. JsonInheritance) moved to NJsonSchema.NewtonsoftJson; NJsonSchema contains the converters for System.Text.Json
- Requires latest Newtonsoft.Json v13.0.0.3
- Now only supports .NET Standard 2.0, .NET 4.6.2 and up
- Updated to latest Namotion.Reflection v3
- Breaking change in IJsonExtensionObject interface (now supports multiple data tuples)
Other changes:
- Add support for STJ-native inheritance schema generation (JsonDerivedType, JsonPolymorphic)
- Many more smaller improvements and fixes (see git history)