Data Transformation & Quality · x402 V2

JSON Schema Validate

Use this service when you need this capability: validates a supplied canonical JSON value against a supplied bounded JSON Schema locally with normalized deterministic errors.

Price and endpoint

LivePOSTBase USDC

0.005 USDC per call

x402 V2 exact payment on Base mainnet (eip155:8453) using USDC. The HTTP 402 challenge confirms the exact requirements before an authorized payment.

POST https://signalharness.ai/api/agent/services/json_schema_validate/invoke

Purpose

Validates a supplied canonical JSON value against a supplied bounded JSON Schema locally with normalized deterministic errors.

This service applies bounded processing to the supplied input. Review its schema, result fields, and limits for the exact supported capability.

Inputs

Request fields and validation limits
FieldTypeRequiredLimits
valueobject or array or string or number or boolean or nullRequiredSee the complete OpenAPI schema.
schemaobject or booleanRequiredSee the complete OpenAPI schema.

Example request body

{
  "value": {
    "example": true
  },
  "schema": {
    "type": "object"
  }
}
View complete input schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 2,
  "maxProperties": 2,
  "required": [
    "value",
    "schema"
  ],
  "properties": {
    "value": {
      "description": "The bounded JSON value to validate.",
      "type": [
        "object",
        "array",
        "string",
        "number",
        "boolean",
        "null"
      ]
    },
    "schema": {
      "description": "The bounded JSON Schema object or boolean schema.",
      "type": [
        "object",
        "boolean"
      ]
    }
  }
}

Realistic output shape

Illustrative output from the canonical adapter fixture and schema. It is not a completed paid execution or a current live observation.

{
  "valid": false,
  "errors": [
    {
      "keyword": "example",
      "instancePath": "example",
      "schemaPath": "example",
      "message": "example",
      "paramsJson": "example"
    }
  ],
  "failingPaths": [
    "example"
  ],
  "schemaPaths": [
    "example"
  ]
}
View complete output schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "additionalProperties": false,
  "minProperties": 4,
  "maxProperties": 4,
  "required": [
    "valid",
    "errors",
    "failingPaths",
    "schemaPaths"
  ],
  "properties": {
    "valid": {
      "type": "boolean"
    },
    "errors": {
      "type": "array",
      "minItems": 0,
      "maxItems": 64,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 5,
        "maxProperties": 5,
        "required": [
          "keyword",
          "instancePath",
          "schemaPath",
          "message",
          "paramsJson"
        ],
        "properties": {
          "keyword": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "instancePath": {
            "type": "string",
            "minLength": 0,
            "maxLength": 2048
          },
          "schemaPath": {
            "type": "string",
            "minLength": 0,
            "maxLength": 2048
          },
          "message": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2048
          },
          "paramsJson": {
            "type": "string",
            "minLength": 2,
            "maxLength": 8192
          }
        }
      }
    },
    "failingPaths": {
      "type": "array",
      "minItems": 0,
      "maxItems": 64,
      "items": {
        "type": "string",
        "minLength": 0,
        "maxLength": 2048
      }
    },
    "schemaPaths": {
      "type": "array",
      "minItems": 0,
      "maxItems": 64,
      "items": {
        "type": "string",
        "minLength": 0,
        "maxLength": 2048
      }
    }
  }
}

Execution limits

  • MaxInputBytes: 262144
  • MaxOutputBytes: 262144
  • MaxConcurrentExecutions: 4
  • MaxArtifacts: 0
  • MaxArtifactBytes: 0
  • RateLimitPerMinute: 60

Timeout: 3000 ms. Full schemas are in OpenAPI.

Copyable unpaid request

This schema-valid request returns the canonical HTTP 402 challenge without executing the service. A payment-capable client validates the challenge, signs only with prior authority and budget, and retries the identical body.

curl -i -X POST https://signalharness.ai/api/agent/services/json_schema_validate/invoke \
  -H "Content-Type: application/json" \
  --data '{"value":{"example":true},"schema":{"type":"object"}}'

Continue with the paid-call walkthrough →