Close Menu
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn WhatsApp Telegram
Tuesday, October 6
  • About
  • Contact
  • Advertise
  • Disclaimer
  • Privacy Policy
  • Editorial Policy
  • Tools
  • Games
JustwebworldJustwebworld
  • People
  • Sports
  • Culture
  • Lifestyle
  • Food
  • Travel
  • Health
  • Tech
  • Business
  • Money
  • Digital
  • Gaming
  • Auto
  • Fashion
  • Home
  • Mind
  • Learn
JustwebworldJustwebworld
Home » Tools » Web & Developer » JSON Schema Validator

JSON Schema Validator

Michael Austin Updated:August 24, 2026

Validate a JSON document against a JSON Schema (draft 2020-12 subset): types, required properties, enums, formats, constraints, allOf/anyOf/oneOf and local $refs — every violation listed with its location.

Contract checking, violation by violation

Syntax can be perfect while the content breaks your API contract: a string where an integer belongs, a missing required field, an enum value that does not exist. Paste the document and the schema, and every violation is listed with its location in the document and the rule it broke. Honesty is a feature here: keywords outside the supported subset are named in a warning — this validator never lets an unchecked rule masquerade as a passed one.

Worked example

✖ INVALID — 4 violations:

  /id — is below minimum 1
  /email — is not a valid email
  /plan — must be one of: "free", "pro", "team"
  (document root) — required property "name" is missing

What is checked

  • Types (with the integer/number distinction), enum and const
  • required, properties, additionalProperties, min/maxProperties
  • String constraints: minLength, maxLength, pattern, common formats (email, date-time, uuid, uri, ipv4, hostname)
  • Numeric constraints and multipleOf; array constraints incl. uniqueItems and prefixItems
  • allOf, anyOf, oneOf, not, and local $refs into $defs/definitions

Limitations to know

  • External $refs are not fetched (no network requests by design) and are reported as unchecked.
  • Advanced keywords like unevaluatedProperties and conditional if/then are outside the subset — always surfaced in the warning, never silently skipped.

Workflow

  • No schema yet? Generate a starting point from real data with the JSON to JSON Schema converter, tighten it, then validate here. Generate fresh test payloads from it with the Example Generator.

How to use the JSON Schema Validator

  1. Paste the JSON document into the first panel and the JSON Schema into the second.
  2. Click "Validate against schema".
  3. Each violation is listed with its location in the document and the rule it broke.
  4. Fix data or schema and re-run — inputs stay in place.

Frequently asked questions

Which schema keywords are checked?

The working core of draft 2020-12: type (incl. unions), enum, const, required, properties, additionalProperties, items/prefixItems, array and string constraints, numeric constraints, common formats (email, date-time, uuid, uri, ipv4…), allOf/anyOf/oneOf/not and local $refs. Anything outside that subset is named in a warning rather than silently skipped — you always know what was not checked.

How is this different from the JSON Validator?

The JSON Validator checks syntax — is this parseable JSON at all. This tool checks CONTENT against your contract: right types, required fields present, values within constraints. Valid syntax with a missing required field passes there and fails here.

Why does integer vs number matter?

"type": "integer" accepts only whole numbers — 2 passes, 2.5 fails. "number" accepts both. APIs that promise integers should say integer, and this validator enforces the difference.

My schema uses $ref to another file — will it work?

Local refs (#/$defs/… and #/definitions/…) resolve fully. External URLs are not fetched — this tool makes no network requests by design — and are reported as unchecked.

Step 3 of 4

Turn a sample response into typed code

A JSON Schema describing an API response, and TypeScript types generated from it.

  1. 1JSON FormatterLay the sample response out so you can see every field.
  2. 2JSON to JSON Schema ConverterInfer a schema from the sample, including types and nesting.
  3. 3JSON Schema Validator you are hereCheck the schema against the sample before you rely on it.
  4. 4JSON to TypeScript ConverterGenerate interfaces you can paste into the codebase.

Next: JSON to TypeScript Converter

Related JSON Schema tools

More in Web & Developer.

  • JSON Schema Example Generator — Generate a sample JSON document from a JSON Schema — honoring const, default, enum, formats, required properties and local $refs.
  • JSON Schema Compare — Compare two versions of a JSON Schema and see what changed for API consumers — removed properties and type changes flagged as breaking, new requirements as warnings, additions as informational.
  • JSON Validator — Check whether text is valid JSON per RFC 8259.

cards
Powered by paypal
Follow on WhatsApp Follow on Telegram
Share. Facebook Twitter Pinterest LinkedIn Tumblr Telegram WhatsApp Copy Link
Previous ArticleJSON Patch Applier
Next Article JSON Schema Compare
Michael Austin
Michael Austin
  • Website
  • Facebook
  • X (Twitter)
  • Pinterest
  • Instagram
  • LinkedIn

Michael Austin is the current owner of Justwebworld and manages the platform’s editorial direction, content strategy, and digital publishing operations. With a strong interest in online media and modern publishing, he focuses on creating informative, engaging, and easy-to-understand content across multiple categories. Under his leadership, Justwebworld continues to grow as a trusted multi-niche digital publication covering technology, business, lifestyle, automotive, sports, travel, and trending internet topics for readers worldwide.

Related Posts

Roman Numerals: Chart, Rules and How to Read Them

Leap Year Rules: How to Tell If a Year Is a Leap Year

24-Hour Clock Explained: How to Convert to and From 12-Hour Time

Unix Timestamp Explained: What Epoch Time Is and How to Convert It

Daylight Saving Time Explained: What It Is, When Clocks Change and Why

ISO 8601 Date Format: YYYY-MM-DD Explained With Examples

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 41.9K other subscribers
Categories

The content on this website is provided solely for educational and informational purposes. We do not promote, endorse, or deal in any products, services, or activities mentioned. While we strive to share accurate and up-to-date information, we make no warranties regarding completeness, reliability, or accuracy. Any action you take based on the information found here is strictly at your own risk, and we will not be liable for any losses or damages in connection with the use of our website.

DMCA.com Protection Status
Justwebworld

Explore knowledge, feed curiosity — trusted by readers since 2012.

Explore Topics
TechBusinessDigitalMoneyLearnPeopleLifestyleCultureHealthHomeTravelGamingFashionAutoFoodMindLawSportsShoppingAI
Popular Tools
Age CalculatorWord CounterCase ConverterLove CalculatorReading TimePeriod CalculatorNumber to WordsAngel NumberHarry Potter NameDemon NameKingdom NameAll Tools →
Popular Games
Bubble BlastSudokuTruth or Dare WheelYes / No WheelAll Games →
Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn WhatsApp Telegram Threads RSS
  • About
  • Contact
  • Advertise With Us
  • Disclaimer
  • Privacy Policy
  • Terms & Conditions
  • Editorial Policy
  • Write for Us
Copyright © 2012-2026. Justwebworld - All Rights Reserved. | Sitemap

Type above and press Enter to search. Press Esc to cancel.