Releases: RicoSuter/NSwag
Releases · RicoSuter/NSwag
NSwag v14.5.0 (NJsonSchema v11.4.0)
What's Changed
- Better support for reading yaml from a stream by @simonthum in #5170
- #4821 Cleanup packages to use those provided by framework by @thompson-tomo in #4831
- Set GH actions target .NET SDK to 9.0.204 by @lahma in #5172
- Better support for reading yaml from a stream (part two) by @simonthum in #5171
- Avoid multiple enumeration of array typed path parameters by @Khyalis in #5149
- Restores all disabled compiler warnings. 649 and 8765 were missing. by @carlbjorknas in #4962
- Fix to explode array parameters implicitly when SchemaType is OpenAPI 3.0 by @Phoosha in #5176
- Adding cancellationToken to all calls to ReadAsStringAsync() and ReadAsStreamAsync() by @arshrp in #5187
- Remove requirement for specific NET SDK in GH Actions by @lahma in #5188
- Adjusted cancellationToken to work for all NSwag supported frameworks by @arshrp in #5190
- Allow setting of the client interface access modifier based on the model access modifier by @pbolduc in #4820
- Prioritize wildcard over json over first entry for accept content-type by @mdi1984 in #5198
- Reduce interface dispatch to improve performance by @lahma in #5199
- Surface ExtensionData in CSharpControllerTemplateModel by @hirudan in #5204
- Expose the UseRequiredKeyword on CSharpClientGeneratorSettings for CSharp client generator by @r-englund in #5205
- Fix to expose an optional param for AbortSignal (for axios) / CancelToken (for fetch) when GenerateClientInterfaces = true by @tomvdk in #5202
- Sort client operation responses by status code by @lahma in #5206
- TSC UpdateUseDtoClassAndDataConversionCodeProperties cleanup by @lahma in #5212
- Update Microsoft.AspNetCore.* references to target 2.3.0 by @lahma in #5214
- Convert to using Central Package Management by @lahma in #5217
- Convert NSwagStudio setup to use WiX 6 by @lahma in #5218
- Add support for TypeScript compilation testing by @lahma in #5219
- Replace TypeScript string contain asserts with Verify tests by @lahma in #5220
- Replace C# string contain asserts with Verify tests by @lahma in #5221
- Remove deprecated tslint suppression by @CaringDev in #5020
- Fix empty enumerable parameter handling in C# client by @lahma in #5222
- Fix: C# Code Generation generates method with return default(void) by @nzeemin in #4826
- Optimize DefaultParameterNameGenerator and add some more char cleanup by @lahma in #5223
- Convert more tests to use verify by @lahma in #5224
- Convert to xUnit v3 by @lahma in #5225
- Ensure operation names start with alphanumeric character by @lahma in #5227
- Change GenerateSampleSpecificationTests to auto verify mode by @lahma in #5228
- Show DisplayName for conflicting actions by @Saibamen in #5057
- Fix: When generated TS class name is "Error", it is conflicting with TS Error class by @doruk-info in #5032
- Update NJsonSchema to 11.4.0, update testsuite to reflect a change in class name generation by @WolfgangHG in #5177
- Improve nswag.js parameter handling by @KaterSchnurz in #5232
- Use TypeScript 4.3 as default testing version by @lahma in #5234
- v14.5.0 by @RicoSuter in #5236
New Contributors
- @simonthum made their first contribution in #5170
- @thompson-tomo made their first contribution in #4831
- @Khyalis made their first contribution in #5149
- @carlbjorknas made their first contribution in #4962
- @Phoosha made their first contribution in #5176
- @arshrp made their first contribution in #5187
- @pbolduc made their first contribution in #4820
- @mdi1984 made their first contribution in #5198
- @hirudan made their first contribution in #5204
- @r-englund made their first contribution in #5205
- @CaringDev made their first contribution in #5020
- @nzeemin made their first contribution in #4826
- @doruk-info made their first contribution in #5032
- @WolfgangHG made their first contribution in #5177
- @KaterSchnurz made their first contribution in #5232
Full Changelog: v14.4.0...v14.5.0
NSwag v14.4.0 (NJsonSchema v11.3.2)
What's Changed
- Fix optional parameter ordering in generated TS/CS clients by @lahma in #5135
- Add MSBuildProjectDirectory fallback to ProjectDir resolution by @lahma in #5146
- Tolerate missing schema in OperationModelBase.GetActualParameters by @lahma in #5147
- Improve OpenApiOperation ActualResponses and Responses performance by @lahma in #5148
- Optimize OpenApiDocument.GenerateOperationIds by @lahma in #5150
- Optimize MultipleClientsFromOperationIdOperationNameGenerator duplicate checks by @lahma in #5151
- Fix some string API usage by @lahma in #5152
- Add NET 8 targets to core libraries by @lahma in #5153
- Optimize ObservableDictionary.CollectionChanged by @lahma in #5154
- Fix array parameter explosion check by @lahma in #5158
- Include each client type in JIRA OpenAPI Verify testing by @lahma in #5160
- Update to NJsonSchema v11.3.2 & Namotion.Reflection v3.4.2 by @RicoSuter in #5161
- Upgraded Microsoft.Extensions.ApiDescription.* to 8.0.14 by @ntyrrell in #5121
- Add support for STJ-native C# code gen by @mac-michael in #5155
- Update to Swagger UI v5.21.0 by @RicoSuter in #5162
New Contributors
- @ntyrrell made their first contribution in #5121
- @mac-michael made their first contribution in #5155
Full Changelog: v14.3.0...v14.4.0
NSwag v14.3.0 (NJsonSchema v11.2.0)
Updated to NJsonSchema v11.2.0, see https://github.com/RicoSuter/NJsonSchema/releases/tag/v11.2.0
What's Changed
- Fix EnableTryItOut UI option by @Saibamen in #5031
- Add analysis rules and relaxations by @lahma in #5036
- Seal private/internal types and make methods static when applicable by @lahma in #5037
- Add GitHub issues templates by @lahma in #5038
- Use Count instead of using Any() by @lahma in #5039
- Enable implicit usings and remove unused by @lahma in #5040
- Fix some code style issues by @lahma in #5041
- Use TryGetValue() and Any() when possible by @lahma in #5042
- Simplify using statements by @lahma in #5043
- Simplify collection initialization by @lahma in #5044
- Use pattern matching by @lahma in #5045
- Use compound assignment by @lahma in #5046
- Simplify collection initialization and use pattern matching by @lahma in #5047
- Remove unnecessary member initialized to its default value by @lahma in #5048
- Add braces to if statements and ensure correct use of variables by @lahma in #5049
- Fix string usage problems reported by analyzers by @lahma in #5050
- Remove unused usings by @lahma in #5051
- Use expression bodies for properties and accessors by @lahma in #5053
- Fix some code formatting issues by @lahma in #5054
- Only run publish when in main repository by @lahma in #5055
- Update
Microsoft.NET.Tests.Sdk
andVerify.XUnit
by @Saibamen in #5059 - Upgrade to NUKE 9 by @lahma in #5052
- Remove NET 6.0 from GitHub Actions by @lahma in #5083
- jsonschema2csclient GenerateNativeRecords argument by @jokarls in #5082
- Fix analyzer issues and remove obsolete NoWarn items by @lahma in #5119
- Remove Microsoft.Extensions.PlatformAbstractions by @lahma in #5058
- Upgrade to NUKE 9.0.4 by @lahma in #5120
- Import dayjs with the default named import by @Seveilith in #4813
- Inheritdoc for ApiDescription by @Saibamen in #5064
- Allow SwaggerUiIndexMiddleware to work with ReDocSettings by @miloszkukla in #5122
- Upgrade NJsonSchema to 11.3.0 & Namotion.Reflection by @RicoSuter in #5128
- Fix for unwanted parameter explosion in C# client by @simonnieder in #5016
- Fix for #3414 - C# generated client using FormUrlEncodedContent instead of StringContent by @ErikApption in #5029
- fix media type on empty request body by @jamesmanningrapidscale in #5068
- Suppress compiler warnings for possible nulls in generated code by @velvolue in #5099
- Update to Swagger UI v5.20.2 by @RicoSuter in #5129
New Contributors
- @Saibamen made their first contribution in #5031
- @jokarls made their first contribution in #5082
- @Seveilith made their first contribution in #4813
- @miloszkukla made their first contribution in #5122
- @simonnieder made their first contribution in #5016
- @ErikApption made their first contribution in #5029
- @jamesmanningrapidscale made their first contribution in #5068
- @velvolue made their first contribution in #5099
Full Changelog: v14.2.0...v14.3.0
NSwag v14.2.0 (.NET 9)
What's Changed
- Support
$ref
inrequestBody
by @eatdrinksleepcode in #4917 - Upgrade to NUKE 8.1 by @lahma in #4980
- Ensure GitHubActionsTestLogger is in use by @lahma in #4951
- feat: update NJsonSchema and Namotion.Reflection by @RicoSuter in #5028
- Add NET 9 support, drop NET 6 support by @lahma in #5026
New Contributors
- @eatdrinksleepcode made their first contribution in #4917
Full Changelog: v14.1.0...v14.2.0
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