Microdeck.tools 100% In-Browser

JSON Schema Draft Validator

New

Catch malformed API requests and broken config payloads before deploying. Paste any JSON Schema and target JSON payload side by side to validate types, required fields, `additionalProperties: false`, nested objects/arrays, numeric bounds, regex patterns, and standard formats (`email`, `uuid`, `date`, `date-time`, `ipv4`).

100% In-Browser No Server Storage Instant Results
Validation Failed (3 issues)
$.plan Value must be one of: "free", "pro", "team".
enum
$.seats 0 is less than minimum 1.
minimum
$.extraField Unexpected property "extraField" (additionalProperties: false).
additionalProperties

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

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

1

Paste your JSON Schema definition into the left editor.

2

Paste the JSON payload to validate into the right editor.

3

Review the instant Pass/Fail banner plus exact JSON pointer paths and failing keywords (`type`, `enum`, `additionalProperties`, `minimum`, etc.).

4

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

Input
Plan: "enterprise" (enum: free/pro/team), seats: 0 (minimum: 1), extraField: true
Output
$.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

Input
{ "id": "550e8400-e29b-41d4-a716-446655440000", "email": "ops@microdeck.tools" }
Output
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:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

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

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.