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: JSON schema tool improvements #16035

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Conversation

ronaldbarendse
Copy link
Contributor

After updating the JsonSchema tool in PR #16030, I copied over the same changes to our commercial products (because this tool isn't reusable yet, see PR #13560). This required doing some adjustments, which can be brought back to the CMS.

The biggest change is that the JSON schema generator now checks the IgnoreReadOnlyProperties setting to conditionally remove read-only properties (which probably should be supported OOTB by NJsonSchema). All properties on the schema class now use the required modifier instead of setting null-suppressed default values and I've made the full UmbracoPath property obsolete, so the obsolete setter work-around can be removed as well.

To test, rebuild the Umbraco.Cms.Targets project (or remove the appsettings-schema.Umbraco.Cms.json file and start a build) and check whether the generated file is the same as before.

@bergmania bergmania merged commit ad82fe8 into v14/dev Apr 15, 2024
17 checks passed
@bergmania bergmania deleted the v14/feature/improve-jsonschema branch April 15, 2024 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants