Skip to content

v14: Update to NJsonSchema 11.0.0 and use SystemTextJsonSchemaGeneratorSettings#16030

Merged
bergmania merged 2 commits intov14/devfrom
v14/feature/remove-newtonsoftjson-jsonschema
Apr 10, 2024
Merged

v14: Update to NJsonSchema 11.0.0 and use SystemTextJsonSchemaGeneratorSettings#16030
bergmania merged 2 commits intov14/devfrom
v14/feature/remove-newtonsoftjson-jsonschema

Conversation

@ronaldbarendse
Copy link
Contributor

@ronaldbarendse ronaldbarendse commented Apr 10, 2024

Following up on #16029, this removes the transitive dependency on Newtonsoft.Json by updating NJsonSchema to 11.0.0 (which uses STJ by default).

I've verified the same appsettings.schema.Umbraco.Cms.json is generated by renaming the existing file, applying this PR, rebuilding the solution and comparing the newly generated file with the renamed one.

@ronaldbarendse ronaldbarendse force-pushed the v14/feature/remove-newtonsoftjson-jsonschema branch from 8e432e9 to 9945dac Compare April 10, 2024 14:20
@ronaldbarendse
Copy link
Contributor Author

I noticed #15987 already updated the NJsonSchema dependency to 11.0.0, but added the additional package to revert to using Newtonsoft.Json again. So this PR now effectively removes that dependency and rewrites the code to use STJ instead.

@bergmania bergmania merged commit 7c2a0f8 into v14/dev Apr 10, 2024
@bergmania bergmania deleted the v14/feature/remove-newtonsoftjson-jsonschema branch April 10, 2024 19:25
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.

2 participants