Validate a JSON Schema document

Check a JSON Schema document for supported types, formats, required arrays, and common validation keywords.

freeworks offlinenothing uploaded
ToolJSON Schema Validator
Input
Output
Put this on your own site

The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.

Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.

Preview

How it works

The document is parsed, its draft URI is recognized, and nested objects are traversed for supported types, formats, bounds, enums, and composition branches. Hard errors are separated from style warnings while properties and encountered types are counted.

  • Common draft identifiers are recognized without claiming complete vocabulary coverage.
  • Missing descriptions are warnings because they are annotations, not structural requirements.

Worked example

Valid Schema
Validate a well-formed JSON Schema document
Input
											{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "name": {"type": "string", "description": "User name"},
    "age": {"type": "integer", "minimum": 0}
  },
  "required": ["name"]
}
										
Output
												Valid: yes
Version: Draft 7
Errors: none
Warnings: $.properties.age: Missing description

STATS
Properties: 2
Required: 1
Types: object, string, integer
											

When to use this

CI schema gates, API contract reviews, and documentation pipelines use this structural check.

Edge cases

  • A required value that is not an array is an error.
  • A custom format is warned about rather than rejected as malformed JSON Schema.
  • A $ref is accepted without fetching or resolving its target document.

References