Skip to content
Free static example · no wallet required

JSON Schema validation

Inspect the exact response envelope first. When you need current analysis for your own input, one successful x402 call costs $0.01 USDC on Base or Solana.

No accountNo subscriptionExact USDC priceFresh calls only are paid
Full response envelope

What you receive

Demonstration data only. The paid endpoint returns a fresh result and settlement receipt.

{
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "data.schema-validate",
  "version": "1",
  "data": {
    "valid": false,
    "schemaValid": true,
    "instanceValid": false,
    "errorCount": 1,
    "errorCountExact": true,
    "errorsReturned": 1,
    "errorsTruncated": false,
    "errors": [
      {
        "kind": "instance",
        "instancePath": "/score",
        "schemaPath": "/properties/score/type",
        "keyword": "type",
        "message": "'98' is not of type 'integer'"
      }
    ],
    "schema": {
      "dialect": "https://json-schema.org/draft/2020-12/schema",
      "declaredDialect": "https://json-schema.org/draft/2020-12/schema",
      "utf8Bytes": 224,
      "sha256": "9565a3dfc9aaadfaf2b3163f433b954d7d91246b6c225c11a8c16fe42ae841e4",
      "remoteReferencesAllowed": false
    },
    "instance": {
      "utf8Bytes": 27,
      "sha256": "43d117eb76b608a0d05820c70320889a6577ff85446e00412b6e6487c1559149"
    },
    "validation": {
      "engine": "python-jsonschema",
      "engineVersion": "4.26.0",
      "draft": "2020-12",
      "formatChecking": true,
      "maxErrors": 25,
      "networkRequestsMade": false
    }
  },
  "meta": {
    "duration_ms": 42,
    "cached": false,
    "sources": [],
    "warnings": [],
    "next_actions": [
      {
        "service": "data.schema",
        "title": "JSON Schema generator",
        "reason": "Infer the rejected instance's observed Draft 2020-12 shape for comparison with the intended schema.",
        "method": "POST",
        "path": "/v1/data/schema",
        "price": "$0.025",
        "input_template": {
          "content": "$json($request.instance)",
          "format": "json",
          "root_mode": "preserve"
        },
        "use_output": "Run when this result.data.instanceValid is false, then compare the follow-up result.data.schema with the caller's intended contract; inference does not repair the instance or replace that contract.",
        "handoff_path": "/catalog/data.schema",
        "checkout_path": "/try/data.schema",
        "sample_path": "/samples/data.schema",
        "maximum_atomic_usdc": "25000",
        "handoff_payment_required": false,
        "executes_automatically": false,
        "authorization_required": true
      }
    ]
  }
}
Example request

Input JSON

{
  "schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
      "name": {
        "type": "string",
        "minLength": 1
      },
      "score": {
        "type": "integer",
        "minimum": 0
      }
    },
    "required": [
      "name",
      "score"
    ],
    "additionalProperties": false
  },
  "instance": {
    "name": "Ada",
    "score": "98"
  },
  "max_errors": 25,
  "check_formats": true
}
Delivery contract

One paid POST

Validate JSON data against a bounded JSON Schema Draft 2020-12 contract for nested objects, arrays, required properties, types, enums, formats, lengths, patterns, and numeric bounds; return deterministic instance and schema JSON Pointers, explicit error truncation, input hashes, and no remote reference resolution.

POST /v1/data/schema-validate

Inspect validation rules and output schema

Need current data?

Run this exact service.

The checkout verifies the request, selected network, USDC asset, recipient, and price before opening a wallet.

Continue · $0.01 USDC