I required a help on JSON schema and JSON validation where We have a requirement to have multiple attributes (built-in and custom) for a property in C# and then serialize them into JSON schema. I am able to create multiple custom attributes and serialize them using JSchemaGenerationProvider and also validate the same using JsonValidator in my application. I am using Newtonsoft JSON for this.
My queries are:
- When I generate the Schema and compare with JSON on any online, the custom attributes are ignored by the editor, is this because it is not aware of the custom attribute and also requires corresponding validator?
- Is there a way we can export the custom validators (something like a plugin) so that any 3rd party tools can use it to validate custom attributes?
- How we can develop a custom attribute just like a RangeAttribute which can be validated by any 3rd party JSON Schema validator tool.
- Some attributes like Editable, Readonly cannot be serialized into JSON schema, why?
Thanks.
Regards, Shivu.