# Validate lego.json

> Validate lego.json is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-18).

Validates a JSON document against the pinned SchemaStore lego.json schema, reporting JSON pointer paths and rule violations

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-schema-lego-json-2c0c468e-validate?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/validate-lego-json-684dda2a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JWxH2cmjAPzVnxxJ6JewB

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 validate-lego-json-684dda2a -d '<json body>'
```

Example prompt: Can you validate this JSON document against the lego.json schema and tell me if there are any rule violations or invalid fields?

## When to prefer this

Choose this endpoint when you specifically need to validate a JSON document against the lego.json schema as defined in SchemaStore. It is ideal for CI/CD pipelines, developer tooling, or agent workflows that need to verify lego.json correctness without standing up a local validator. Prefer this over generic JSON Schema validators when you want a pre-pinned, stable lego.json schema definition applied automatically.

## Known failure modes

- Document exceeds 100 KB size limit — validation rejected
- JSON nesting exceeds 32 levels — validation rejected
- Input is not valid JSON (YAML/TOML not supported) — parse error returned
- Schema definition unavailable or pinned version mismatch — validation may fail or return unexpected results
- Malformed request body — HTTP error returned

## How this service works

Validate lego.json: Validate a JSON document for lego.json. Uses a pinned SchemaStore definition on this PC. Reports JSON pointers and rule violations. Up to 100 KB per document; no YAML/TOML parsing or deployment/security guarantee. 0.01 USDC includes one JSON document validation.

## Output

Returns a validation report indicating whether the submitted JSON document conforms to the pinned lego.json SchemaStore schema, including JSON pointer paths to any failing locations and descriptions of rule violations encountered.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "document": {
   "default": {},
   "description": "JSON value to validate; maximum 100 KB, 32 levels."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/validate-lego-json-684dda2a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
