JSON schema validate

json-schema-validate · version 1.0.0 · JSON & JSONL · free, no key needed

Validate a JSON instance against ComputeFirst Schema 1.0.

Use when you need to: json schema validate · validate json against schema · check json instance against schema.

Supported

Not supported

Behavior

Input

Output

Limits

Example

Request input:

{
  "schema": {
    "type": "object",
    "required": [
      "name",
      "count"
    ],
    "properties": {
      "name": {
        "type": "string",
        "minLength": 1
      },
      "count": {
        "type": "integer"
      }
    },
    "additionalProperties": false
  },
  "instance": {
    "name": "Ada",
    "count": 3
  }
}

Response:

{
  "result": {
    "valid": true,
    "errors": []
  }
}

How to call it

MCP

Connect https://computefirst.net/mcp (setup), then call execute with:

{
  "id": "json-schema-validate",
  "version": "1.0.0",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "name",
        "count"
      ],
      "properties": {
        "name": {
          "type": "string",
          "minLength": 1
        },
        "count": {
          "type": "integer"
        }
      },
      "additionalProperties": false
    },
    "instance": {
      "name": "Ada",
      "count": 3
    }
  }
}

HTTP (no key)

curl -X POST https://computefirst.net/v1/tools/json-schema-validate/versions/1.0.0/execute \
  -H "Content-Type: application/json" \
  -d '{"schema":{"type":"object","required":["name","count"],"properties":{"name":{"type":"string","minLength":1},"count":{"type":"integer"}},"additionalProperties":false},"instance":{"name":"Ada","count":3}}'

The machine-readable contract is at /v1/tools/json-schema-validate/versions/1.0.0.

CLI

node cli.mjs run json-schema-validate 1.0.0 --input input.json --base-url https://computefirst.net

Get the client at /clients/cli/.