Skip to content
Fourohtwo

utilpeek (Tanod) JSON Schema validation

tanod.dev/v1/json/validate

utilpeek (Tanod) JSON Schema validation: a JSON value checked against a schema, with error paths. Use when an agent must check a JSON value against a JSON Schema and get the paths of any errors.

SolanaAnswering
POSThttps://tanod.dev/v1/json/validate

Uptime100% of 4 checks in 30 days

30 days agoToday

Call it from an agent

curl -i -X POST -H 'content-type: application/json' "https://tanod.dev/v1/json/validate" \
  -d '{"schema":{"type":"object","required":["name","age"],"properties":{"age":{"type":"integer"},"name":{"type":"string"},"email":{"type":"string","format":"email"}}},"instance":{"name":1,"email":"nope"}}'

# 402 Payment Required comes back with the price and where to pay.
# Any x402 client pays and retries.

Example input

{
  "schema": {
    "type": "object",
    "required": [
      "name",
      "age"
    ],
    "properties": {
      "age": {
        "type": "integer"
      },
      "name": {
        "type": "string"
      },
      "email": {
        "type": "string",
        "format": "email"
      }
    }
  },
  "instance": {
    "name": 1,
    "email": "nope"
  }
}

More from Tanod utilpeekProvider status