Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v14: Update to NJsonSchema 11.0.0 and use SystemTextJsonSchemaGeneratorSettings #16030

Merged
merged 2 commits into from
Apr 10, 2024

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
16 checks passed
@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