Enter JSON to generate schema

Input JSON

Characters: 0Size: 0 KB

Generated Schema

Characters: 0Size: 0 KB

JSON Schema Syntax Guide

Core Keywords:

  • type - Data type (string, number, object, array, boolean, null)
  • properties - Defines object properties
  • items - Defines array item schemas
  • required - List of required properties
  • additionalProperties - Controls extra properties

String Validation:

  • minLength / maxLength - Length constraints
  • pattern - Regular expression pattern
  • format - Predefined formats (date, email, uri, etc.)

Number Validation:

  • minimum / maximum - Value range
  • exclusiveMinimum / exclusiveMaximum - Exclusive bounds
  • multipleOf - Divisor constraint

Advanced Features:

  • $ref - Reference other schemas
  • allOf / anyOf / oneOf - Schema composition
  • not - Negation constraint
  • if / then / else - Conditional validation

Current Draft: draft-07

Learn more at: json-schema.org