Bump NSwag.AspNetCore from 14.6.3 to 14.7.1#69
Conversation
|
Ollama Code Review for
Here's an improved version of your <Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<!-- Define constants for target framework, user secrets ID, etc. -->
<TargetFramework>net8.0</TargetFramework>
<UserSecretsId>9d750d08-73ae-4876-83cc-4aad393eef18</UserSecretsId>
<!-- Replace with your Dockerfile location -->
<!-- <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> -->
</PropertyGroup>
<ItemGroup>
<!-- PackageReference element for multiple packages -->
<PackageReference Include="Microsoft.AspNetCore.Authentication" Version="2.3.9" TargetFramework="net8.0" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.25" TargetFramework="net8.0" />
<PackageReference Include="NSwag.AspNetCore" Version="14.7.1" TargetFramework="net8.0" />
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" TargetFramework="net8.0" />
</ItemGroup>
</Project> |
--- updated-dependencies: - dependency-name: NSwag.AspNetCore dependency-version: 14.7.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
a545759 to
5fa22c9
Compare
|
Ollama Code Review for Code Review Overall, the code looks clean and well-formatted. However, here are some suggestions for improvement:
Improved Code Coding Best Practices
Readability and Maintainability
Additional Tips
By following these suggestions, you can improve the readability, maintainability, and overall quality of your .csproj file. |
Updated NSwag.AspNetCore from 14.6.3 to 14.7.1.
Release notes
Sourced from NSwag.AspNetCore's releases.
14.7.1
Corrections to v14.7.0
v14.7.1 updates to NJsonSchema v11.6.1, which corrects the handling of the C#
requiredkeyword and[JsonRequired]:string?,T?) is preserved.MinLength=1on non-nullable strings.[Required]semantics remain unchanged (still suppresses nullability and addsMinLength=1to strings by default, matching its runtime behavior).Observable client changes vs v14.7.0
For
public required string[]? OptionList { get; init; }(#5359):optionList: string[]❌public string[] OptionList❌optionList: string[] | null✅public string[]? OptionList✅For full details and truth tables across all
required/[Required]/[JsonRequired]/[JsonProperty(Required=*)]combinations, see the NJsonSchema v11.6.1 release notes and NJsonSchema #1919.What's Changed
Full Changelog: RicoSuter/NSwag@v14.7.0...v14.7.1
14.7.0
What's Changed
NSwag.Npmresulting in aNConsole.UnusedArgumentExceptionby @ptasev in Fix specifying runtime forNSwag.Npmresulting in aNConsole.UnusedArgumentExceptionRicoSuter/NSwag#5320NJsonSchema 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:
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.WriteAccessorsetting to control property setter syntax (setvsinit).JsonLibraryVersionsetting for controlling enum attribute generation with System.Text.Json.MinLengthvalidation no longer incorrectly applied to DateTime properties.IncludeFieldsis enabled.For the full list of changes, see the NJsonSchema v11.6.0 release notes.
New Contributors
NSwag.Npmresulting in aNConsole.UnusedArgumentExceptionRicoSuter/NSwag#5320Full Changelog: RicoSuter/NSwag@v14.6.3...v14.7.0
Commits viewable in compare view.