Schema Doctor

SchemaDoctor

Validate JSON payloads against your schema. Find contract violations instantly.

Schema Format Reference

string · number · boolean · object · arrayOptional: type?Arrays: array<string>

Enter your schema and payload, then click Validate

API Available

Need to validate schemas programmatically? Schema Doctor offers a REST API for integration into your CI/CD pipelines, testing suites, or applications.

POST /api/validateRequires API keyRequest access on GitHub

Request

curl -X POST https://schema-doctor.dev/api/validate \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "schema": { "id": "string", "isActive": "boolean" },
    "payload": { "id": 123, "isActive": "yes" }
  }'

Response

{
  "valid": false,
  "summary": "2 violations found",
  "violations": [
    {
      "path": "id",
      "issue": "type mismatch",
      "expected": "string",
      "received": "number"
    },
    {
      "path": "isActive",
      "issue": "type mismatch",
      "expected": "boolean",
      "received": "string"
    }
  ]
}