Dev.to
6/28/2026

I Built a Browser-Only JSON Schema Validator — Draft-07, $ref, allOf/anyOf/oneOf, if/then/else, 173 Tests
Short summary
Author built a zero-dependency browser-based JSON Schema Draft-07 validator supporting references, conditionals, and combining keywords with 173 tests and detailed error messages. The tool handles both Draft-04 and Draft-07 spec variations and is available live for quick schema validation. Implementation uses a single recursive function demonstrating proper edge case handling across all major schema keywords.
- •Complete Draft-07 JSON Schema validator runs entirely in the browser with no dependencies
- •Supports advanced features: $ref resolution, if/then/else conditionals, allOf/anyOf/oneOf combines, and Draft-04/06/07 compatibility
- •Provides detailed error reporting with JSON paths and keyword badges, plus live tool and learning resource
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



