Skip to content

chore(deps): update nswag monorepo to 14.7.1#232

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/nswag-monorepo
Open

chore(deps): update nswag monorepo to 14.7.1#232
renovate[bot] wants to merge 1 commit intomainfrom
renovate/nswag-monorepo

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 2, 2025

This PR contains the following updates:

Package Change Age Confidence
NSwag.CodeGeneration.CSharp (source) 14.3.014.7.1 age confidence
NSwag.CodeGeneration.TypeScript (source) 14.3.014.7.1 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

RicoSuter/NSwag (NSwag.CodeGeneration.CSharp)

v14.7.1: NSwag v14.7.1 (NJsonSchema v11.6.1)

[!IMPORTANT]
Upgrade directly from v14.6.3 to v14.7.1 — skip v14.7.0.

v14.7.0 bundled NJsonSchema v11.6.0, which contained a regression that silently dropped nullability on required T? / [JsonRequired] T? DTO properties. The resulting OpenAPI/JSON schema marked those properties as non-nullable, so generated TypeScript and C# clients lost null-safety for fields the server can legitimately return as null (#​5359).

Corrections to v14.7.0

v14.7.1 updates to NJsonSchema v11.6.1, which corrects the handling of the C# required keyword and [JsonRequired]:

  • These are now treated as presence markers (the property must be present in the JSON) rather than value constraints.
  • Nullability from the declared type (string?, T?) is preserved.
  • No spurious MinLength=1 on non-nullable strings.
  • DataAnnotations [Required] semantics remain unchanged (still suppresses nullability and adds MinLength=1 to strings by default, matching its runtime behavior).
Observable client changes vs v14.7.0

For public required string[]? OptionList { get; init; } (#​5359):

TypeScript client C# client
v14.7.0 (broken) optionList: string[] public string[] OptionList
v14.7.1 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

v14.7.0: NSwag v14.7.0 (NJsonSchema v11.6.0)

What's Changed
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 required keyword now correctly recognized: Properties using the C# 11 required keyword (via RequiredMemberAttribute / 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 WriteAccessor setting to control property setter syntax (set vs init).
  • New JsonLibraryVersion setting for controlling enum attribute generation with System.Text.Json.
  • Fixed MinLength validation 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 IncludeFields is enabled.

For the full list of changes, see the NJsonSchema v11.6.0 release notes.

New Contributors

Full Changelog: RicoSuter/NSwag@v14.6.3...v14.7.0

v14.6.3: NSwag v14.6.3 (NJsonSchema v11.5.2)

What's Changed

New Contributors

Full Changelog: RicoSuter/NSwag@v14.6.2...v14.6.3

v14.6.2: NSwag v14.6.2 (NJsonSchema v11.5.2)

Fixes EnumValue regression in v14.6.1 by introducing a new JsonLibraryVersion configuration (default 8.0)

What's Changed

image

Full Changelog: RicoSuter/NSwag@v14.6.1...v14.6.2

v14.6.1: NSwag v14.6.1 (NJsonSchema v11.5.1)

What's Changed

New Contributors

Full Changelog: RicoSuter/NSwag@v14.6.0...v14.6.1

v14.6.0: NSwag v14.6.0 (NJsonSchema v11.5.0)

What's Changed

New Contributors

Full Changelog: RicoSuter/NSwag@v14.5.0...v14.6.0

v14.5.0: NSwag v14.5.0 (NJsonSchema v11.4.0)

What's Changed

New Contributors

Full Changelog: RicoSuter/NSwag@v14.4.0...v14.5.0

v14.4.0: NSwag v14.4.0 (NJsonSchema v11.3.2)

What's Changed
New Contributors

Full Changelog: RicoSuter/NSwag@v14.3.0...v14.4.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented May 2, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/packages.lock.json, test/Dummy.Api/packages.lock.json, src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger/packages.lock.json
  Determining projects to restore...
/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj : error NU1605: Warning As Error: Detected package downgrade: NJsonSchema.CodeGeneration.CSharp from 11.6.1 to 11.2.0. Reference the package directly from the project to select a different version. 
/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj : error NU1605:  Dummy.Api -> Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NSwag.CodeGeneration.CSharp 14.7.1 -> NJsonSchema.CodeGeneration.CSharp (>= 11.6.1) 
/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj : error NU1605:  Dummy.Api -> Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NJsonSchema.CodeGeneration.CSharp (>= 11.2.0)
/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj : error NU1605: Warning As Error: Detected package downgrade: NJsonSchema.CodeGeneration.TypeScript from 11.6.1 to 11.2.0. Reference the package directly from the project to select a different version. 
/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj : error NU1605:  Dummy.Api -> Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NSwag.CodeGeneration.TypeScript 14.7.1 -> NJsonSchema.CodeGeneration.TypeScript (>= 11.6.1) 
/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj : error NU1605:  Dummy.Api -> Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NJsonSchema.CodeGeneration.TypeScript (>= 11.2.0)
  Failed to restore /tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj (in 1.46 sec).
  Restored /tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.csproj (in 46 ms).
/tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc.csproj : error NU1605: Warning As Error: Detected package downgrade: NJsonSchema.CodeGeneration.CSharp from 11.6.1 to 11.2.0. Reference the package directly from the project to select a different version.  [/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj]
/tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc.csproj : error NU1605:  Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NSwag.CodeGeneration.CSharp 14.7.1 -> NJsonSchema.CodeGeneration.CSharp (>= 11.6.1)  [/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj]
/tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc.csproj : error NU1605:  Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NJsonSchema.CodeGeneration.CSharp (>= 11.2.0) [/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj]
/tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc.csproj : error NU1605: Warning As Error: Detected package downgrade: NJsonSchema.CodeGeneration.TypeScript from 11.6.1 to 11.2.0. Reference the package directly from the project to select a different version.  [/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj]
/tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc.csproj : error NU1605:  Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NSwag.CodeGeneration.TypeScript 14.7.1 -> NJsonSchema.CodeGeneration.TypeScript (>= 11.6.1)  [/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj]
/tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc.csproj : error NU1605:  Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc -> NJsonSchema.CodeGeneration.TypeScript (>= 11.2.0) [/tmp/renovate/repos/github/Informatievlaanderen/swagger/test/Dummy.Api/Dummy.Api.csproj]
  Failed to restore /tmp/renovate/repos/github/Informatievlaanderen/swagger/src/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc/Be.Vlaanderen.Basisregisters.AspNetCore.Swagger.ReDoc.csproj (in 62 ms).

@renovate renovate Bot requested a review from a team as a code owner May 2, 2025 04:11
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from 2ff7516 to 00f3588 Compare August 3, 2025 00:49
@renovate renovate Bot changed the title chore(deps): update nswag monorepo to 14.4.0 chore(deps): update nswag monorepo to 14.5.0 Aug 3, 2025
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from 00f3588 to 2dd05a9 Compare September 18, 2025 21:23
@renovate renovate Bot changed the title chore(deps): update nswag monorepo to 14.5.0 chore(deps): update nswag monorepo to 14.6.0 Sep 18, 2025
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from 2dd05a9 to c62af91 Compare September 30, 2025 23:35
@renovate renovate Bot changed the title chore(deps): update nswag monorepo to 14.6.0 chore(deps): update nswag monorepo to 14.6.1 Sep 30, 2025
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from c62af91 to 5459201 Compare November 5, 2025 17:55
@renovate renovate Bot changed the title chore(deps): update nswag monorepo to 14.6.1 chore(deps): update nswag monorepo to 14.6.2 Nov 5, 2025
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from 5459201 to ece6854 Compare November 20, 2025 21:34
@renovate renovate Bot changed the title chore(deps): update nswag monorepo to 14.6.2 chore(deps): update nswag monorepo to 14.6.3 Nov 20, 2025
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from ece6854 to b1890c0 Compare February 2, 2026 15:15
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from b1890c0 to 25e054a Compare April 8, 2026 20:12
@renovate renovate Bot changed the title chore(deps): update nswag monorepo to 14.6.3 chore(deps): update nswag monorepo to 14.7.0 Apr 8, 2026
@renovate renovate Bot force-pushed the renovate/nswag-monorepo branch from 25e054a to 49cde25 Compare April 20, 2026 20:39
@renovate renovate Bot changed the title chore(deps): update nswag monorepo to 14.7.0 chore(deps): update nswag monorepo to 14.7.1 Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants