# centralcity.ai JSON Schema Validator

> centralcity.ai JSON Schema Validator is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Validates a JSON document against a JSON Schema, checking type, properties, required fields, items, enum, const, min/max, length, pattern, and additionalProperties constraints.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_yn5qtdn2prjtohs3?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-json-schema-validator-ada866f0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1l_uUq5X_rKoOXN4lbgxQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability centralcity-ai-json-schema-validator-ada866f0 -d '<json body>'
```

Example prompt: Can you check whether this JSON — {"name":"Alice","age":28,"email":"alice@example.com"} — is valid against this schema: {"type":"object","properties":{"name":{"type":"string"},"age":{"type":"integer","minimum":0},"email":{"type":"string","format":"email"}},"required":["name","age"]}?

## When to prefer this

Use this endpoint when you need a lightweight, pay-per-call JSON Schema validation without standing up a validation library or server. Ideal for agents that occasionally need to verify JSON payloads against schemas (API responses, config files, form data) without integrating a full validation SDK. Prefer over general-purpose LLM-based validation when you need deterministic, spec-compliant schema enforcement.

## Known failure modes

- JSON document exceeds 64 KiB limit — rejected
- JSON Schema exceeds 16 KiB limit — rejected
- Malformed JSON in the 'json' field — parse error returned
- Malformed JSON Schema in the 'schema' field — schema parse error returned
- Unsupported JSON Schema keywords silently ignored or returning unexpected results
- Network timeout on large documents near the size limit

## How this service works

Checks a JSON document against a JSON Schema (type, properties, required, items, enum, const, minimum, maximum, minLength, maxLength, pattern, additionalProperties).

## Output

Returns a validation result indicating whether the JSON document is valid against the provided JSON Schema, along with details of any constraint violations found (e.g. wrong type, missing required field, value out of range, pattern mismatch, disallowed additional properties).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "json": {
   "type": "string",
   "description": "The JSON document, at most 64 KiB."
  },
  "schema": {
   "type": "string",
   "description": "The JSON Schema as JSON text, at most 16 KiB."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/centralcity-ai-json-schema-validator-ada866f0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
