Releases: RicoSuter/NSwag
Releases · RicoSuter/NSwag
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)
NSwag v14.0.0-preview013 (RC4)
Add SchemaGeneratorFactory property to OpenApiDocumentGeneratorSettin…
NSwag v14.0.0-preview012 (RC3)
Breaking Changes:
- Renamed UseSwaggerUi3 to UseSwaggerUi (v2 has been removed)
- Assembly loader has been removed (used csproj loading instead, for Web API you'd need to build your own CLI)
NSwag v14.0.0-preview011 (RC2)
Update NJS
NSwag v14.0.0-preview010 (RC1)
Use supported versions of Microsoft.AspNetCore.* (#4561) ASP.NET Core 2.1 on .NET Framework is supported while version 2.2 is deprecated.
NSwag v14.0.0-preview009
Full Changelog: v14.0.0-preview008...v14.0.0-preview009
NSwag v14.0.0-preview008
What's Changed
- NSwag v14 (preview) by @RicoSuter in #3758
- Improve typescript output by @klinkby in #4505
- Set correct parameter position by @trejjam in #4499
- Update AxiosClient.liquid so instance and baseUrl are protected by @mjphillips-sg in #4497
- Clarified behavior of overloads by @janv8000 in #4435
- Add Encoding and Media Type to StringContent for form data by @ArieGato in #4487
- Do not set clientSecret for CODE-PKCE by @trejjam in #4184
- Change supported target frameworks by @lahma in #4001
- Bump Microsoft.AspNetCore.Mvc.Core from 1.0.4 to 1.0.6 in /src/NSwag.Generation.AspNetCore by @dependabot in #4527
- Exclude IHostedService implementations when running Console Commands by @desjoerd in #4523
- Serialize to UTF-8 bytes with System.Text.Json. by @olegd-superoffice in #4175
- Make serializer settings static by @ErikPilsits-RJW in #4256
- Clean project dependencies by @lahma in #4530
- Add net8.0 target framework by @cristipufu in #4502
- Fix for multipart/formdata schema bug. by @bobend in #4476
New Contributors
- @klinkby made their first contribution in #4505
- @mjphillips-sg made their first contribution in #4497
- @janv8000 made their first contribution in #4435
- @ArieGato made their first contribution in #4487
- @desjoerd made their first contribution in #4523
- @ErikPilsits-RJW made their first contribution in #4256
- @cristipufu made their first contribution in #4502
- @bobend made their first contribution in #4476
Full Changelog: v13.20.0...v14.0.0-preview008
NSwag v13.20.0
- Minor improvements
NSwag v13.19.0
- Update to latest NJsonSchema and Namotion.Reflection libraries
NSwag v13.18.5
- ASP.NET Core OpenAPI Generator: Required path parameters are never nullable
- TypeScript Generator: Add Axios abort signal: #4282
- Update to Swagger UI v4.18.3