Skip to content

v14: JSON schema tool improvements#16035

Merged
bergmania merged 3 commits intov14/devfrom
v14/feature/improve-jsonschema
Apr 15, 2024
Merged

v14: JSON schema tool improvements#16035
bergmania merged 3 commits intov14/devfrom
v14/feature/improve-jsonschema

Conversation

@ronaldbarendse
Copy link
Copy Markdown
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
@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