/
JSON Schema Validator

JSON Schema Validator

Validate JSON data against JSON Schema specifications with detailed error reporting.

What is JSON Schema?

JSON Schema is a powerful tool for validating the structure of JSON data. It allows you to describe your data format and automatically validate that incoming data conforms to that format.

Common Use Cases

  • • API request/response validation
  • • Configuration file validation
  • • Data quality assurance
  • • Documentation generation

Understanding JSON Schema Drafts

Draft 4 (2013)

Basic validation, maximum compatibility

  • • Basic keywords: type, required, properties
  • • Simple format validation
  • • Best for legacy systems
Draft 7 (2019) ⭐ Recommended

Most widely used, good balance of features

  • • Conditional validation (if/then/else)
  • • readOnly and writeOnly properties
  • • Enhanced const keyword
  • • Industry standard for APIs
Draft 2019-09

Advanced features for complex schemas

  • • Recursive schema references
  • • unevaluatedProperties validation
  • • Custom vocabulary support
Draft 2020-12 (Latest)

Cutting-edge features for new projects

  • • Dynamic references ($dynamicRef)
  • • Tuple validation (prefixItems)
  • • Enhanced format handling
How to choose a draft:
• Draft 7 - Use this for most cases (default choice)
• Draft 4 - When working with older systems or libraries
• 2019-09/2020-12 - For new projects wanting latest features
• Check your schema's $schema field to see which draft it uses