Newtonsoft.Json.Schema icon indicating copy to clipboard operation
Newtonsoft.Json.Schema copied to clipboard

Validation hints - interested properties

Open klmcwhirter opened this issue 5 years ago • 1 comments

Is there a way to provide meta data about which parts of the hierarchy an app is interested to the extent that the validation process is influenced?

I.e., if I am not interested in a required property that property would be ignored for the purpose of validation?

I would like to defer code generation churn for changes that do not functionally impact the application.

I have not been able to find mention of such a feature in the documentation. But perhaps there is a way to accomplish this with a custom JsonValidator.

klmcwhirter avatar May 08 '19 18:05 klmcwhirter

@JamesNK is it possible to create a custom validation rule to ignore required properties?

knuxbbs avatar Jun 28 '21 13:06 knuxbbs