How It Works Under the Hood
The recursive schema walker parses both Schema and Data trees, traversing nested `properties`, `items`, `allOf`/`anyOf`/`oneOf`, numeric limits (`minimum`, `maximum`, `exclusiveMinimum`), string `minLength`/`pattern`/`format`, and strict object checks to emit exact JSON pointer paths and keywords for every violation.
Step-by-Step Instructions
Paste your JSON Schema definition into the left editor.
Paste the JSON payload to validate into the right editor.
Review the instant Pass/Fail banner plus exact JSON pointer paths and failing keywords (`type`, `enum`, `additionalProperties`, `minimum`, etc.).
Copy the structured JSON error report if needed.
Key Features & Performance
- Pinpoints exact broken path (`$.items[2].email`) and failing schema keyword on every mismatch
- Validates object `required` keys, `additionalProperties`, `enum`, `const`, and nested arrays
- Includes built-in `format` validators (`email`, `uuid`, `date`, `date-time`, `ipv4`)
- Supports `allOf`, `anyOf`, and `oneOf` combinators plus string `pattern` regexes
- Runs 100% offline: safe for proprietary API contracts and customer webhook samples
Methodology, Formulas & Technical Standards
Validation implements deterministic recursive descent over parsed AST objects rather than dynamic code generation (`new Function`), making it strictly CSP-safe and immune to schema compilation overhead.
Common Real-World Use Cases
- Verifying webhook or REST request bodies match your API schema contract before releasing clients
- Debugging Cloudflare Workers / JSON config files when undocumented keys slip into staging configs
- Testing edge cases (`null`, integer vs float, empty arrays) locally without spinning up Node scripts
- Sharing exact structured JSON validation error reports in bug tickets
Worked Examples & Edge Cases
Strict Object & Format Check
Plan: "enterprise" (enum: free/pro/team), seats: 0 (minimum: 1), extraField: true
$.plan (enum), $.seats (minimum), $.extraField (additionalProperties)
Reports all three distinct violations in one pass instead of stopping at the first error.
UUID & Email Format Validation
{ "id": "550e8400-e29b-41d4-a716-446655440000", "email": "ops@microdeck.tools" } Valid JSON against Schema (0 errors)
Verifies both RFC UUID v1-v8 format and basic email structure.
Limitations, Scope & Accuracy Notes
- • External remote `$ref` URL fetching is intentionally disabled for offline privacy; inline schemas or local definitions should be pasted directly.
- • Extremely complex JSON Schema Draft 2020-12 `$dynamicRef` / `unevaluatedProperties` graph features are outside this lightweight validator.
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. JSON Schema Draft Validator runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
Does the validator stop at the first error or report every issue?
It collects and displays all failing paths across the entire JSON document so you can fix multiple bugs in a single pass.
Are `integer` and `number` checked differently?
Yes. `type: "integer"` requires `Number.isInteger(val)` (rejecting `1.5`), whereas `type: "number"` allows floats.
Why are remote `$ref` HTTP fetches not loaded?
Microdeck tools never issue external network fetches on your schemas or payloads, protecting internal enterprise data.
Can I copy the validation errors as JSON?
Yes. Whenever errors appear, a Copy Error Report button exports the array of `{ path, keyword, message }` objects.
Explore Related Micro-Tools
Structured LLM Output & Schema Generator
Convert JSON payloads into Zod, Pydantic & JSON Schema
JSON Formatter, Validator & Diff
Format, validate, compare diffs & auto-repair malformed JSON locally in your browser
JSONPath Expression & Filter Tester
Test RFC 9535 JSONPath selectors, recursive descent (`..`), wildcards, negative slices & filter predicates live