Validate JSON object using a Schema Definition

Viewed 5351

Just we can validate an incoming XML file based on the pre-defined schema, i.e. XSD or DTD, can we performation a validtaion on an incoming JSON object. Is there any JSON Schema Definition available?

5 Answers

There's a working draft of a JSON schema. You could also take a look at Cerny.

OpenAPI is probably the best answer to this now. It's supported in .Net 5.0. This seems to be the industry direction.

Related