Validador JSON Schema

Valida documentos JSON contra un JSON Schema

JSON Data

Loading editor...

JSON Schema

Loading editor...

Enforce a JSON contract, not just JSON syntax

Syntax validation tells you the document parses. Schema validation tells you it actually has the fields, types, and constraints your code expects. That matters most when JSON is crossing a boundary — between services, between a model and your code, or between a partner system and yours — where a missing field becomes a production incident.

Use the validator when you need to

Validate API request and response bodies

Check that incoming and outgoing payloads match the contract before they reach business logic.

Validate AI structured outputs

Confirm that model responses, tool calls, or agent JSON match the shape your downstream code requires.

Run schema checks in CI on fixtures

Fail builds when sample payloads or fixtures drift away from the documented contract.

How to validate JSON against a schema

  1. 1

    Paste your JSON document into the data editor.

  2. 2

    Paste your JSON Schema (Draft 2020-12) into the schema editor.

  3. 3

    Click Validate and review the path-by-path errors if validation fails.

Common schema-validation workflows

Lock down an API contract

Reject any request body that doesn't match the schema before it touches downstream services.

Verify a model output

Validate structured AI responses against the schema your handler expects.

Catch fixture drift in CI

Run validation on test fixtures so changes to the contract surface immediately.

Herramientas relacionadas

Preguntas frecuentes

Pega tu JSON en el editor de la izquierda y tu JSON Schema en el editor de la derecha, y luego haz clic en Validate. La herramienta comprueba todas las restricciones del esquema y reporta los errores con sus rutas exactas.

El validador soporta las funcionalidades de JSON Schema Draft 2020-12, incluyendo comprobación de tipos, campos required, validación por pattern, restricciones minimum/maximum, validación de items en arrays, combinadores allOf/anyOf/oneOf y referencias $ref.

Cada error incluye la ruta en los datos (dónde ocurre), la ruta en el esquema (qué regla falló) y un mensaje legible que explica el problema. Por ejemplo: /users/0/email must match format "email".

Sí. Si tienes una especificación OpenAPI/Swagger, extrae la definición de esquema relevante, pégala en el editor de Schema y luego pega un body de ejemplo en el editor de JSON para verificar que cumple todos los requisitos.