JSON Schema validator

Check a document against its schema. The example allows nine lives. Change Mochi’s twelve to nine and run it again to see the result pass.

Input

No key required

Result

Example

Not valid

[
  {
    "path": "/lives",
    "schemaPath": "#/properties/lives/maximum",
    "keyword": "maximum",
    "message": "Must be at most 9."
  }
]
Full response
{
  "valid": false,
  "errors": [
    {
      "path": "/lives",
      "schemaPath": "#/properties/lives/maximum",
      "keyword": "maximum",
      "message": "Must be at most 9."
    }
  ],
  "truncated": false
}

Run with curl

Copy this command to run the request in your terminal. It updates as you edit the input.

For higher limits, get a free API key and add -H "Authorization: Bearer $KAMINEKO_API_KEY".

POST /v1/validate/json-schema
curl 'https://api.kamineko.dev/v1/validate/json-schema' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "schema": {
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "minLength": 1
      },
      "lives": {
        "type": "integer",
        "maximum": 9
      }
    },
    "required": [
      "name",
      "lives"
    ]
  },
  "data": {
    "name": "Mochi",
    "lives": 12
  }
}'

Use with MCP

Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the validate_json_schema tool with this prompt.

Check this payload against my JSON Schema and list everything wrong with it.
MCP https://api.kamineko.dev/mcp
claude mcp add --transport http kamineko \
  https://api.kamineko.dev/mcp \
  --header "Authorization: Bearer $KAMINEKO_API_KEY"

Usage notes

  • Set $schema to select draft 4, 6, 7, 2019-09, or 2020-12. The default is 2020-12. References must resolve inside the schema.