data.contract
Normalize caller-supplied CSV, TSV, JSON, JSON Lines, or YAML to deterministic JSON, infer a Draft 2020-12 schema from that normalized value, and validate one future JSON value in a single x402 call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | Yes | Source format; use jsonl for JSON Lines or NDJSON | |
| content | Yes | ||
| instance | Yes | Future JSON-compatible value to validate against the schema inferred from content | |
| root_mode | No | Keep the compatible array-of-records contract, or preserve the JSON/YAML root shape | records |
| max_errors | No | ||
| check_formats | No | Assert supported JSON Schema formats during future-value validation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Structured Structured data contract result | |
| meta | Yes | ||
| service | Yes | ||
| version | Yes | ||
| request_id | Yes | Unique request identifier |