Skip to content
Fourohtwo

JSON Schema validate

mpp-docs.fmf-x402.workers.dev/mpp/json/validate

JSON Schema validate — Validate JSON data against a JSON Schema (draft 2020-12, 2019-09, 7, 4). Body: JSON {schema, data, draft?}. Returns valid plus every error with instance path and keyword. Price $0.001 per call.

BaseAnswering
POSThttps://mpp-docs.fmf-x402.workers.dev/mpp/json/validate

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://mpp-docs.fmf-x402.workers.dev/mpp/json/validate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"data":{"id":"x"},"schema":{"type":"object","required":["id"],"properties":{"id":{"type":"integer"}}}}),
});
console.log(await res.json());

Example input

{
  "data": {
    "id": "x"
  },
  "schema": {
    "type": "object",
    "required": [
      "id"
    ],
    "properties": {
      "id": {
        "type": "integer"
      }
    }
  }
}

More from FMF Tools FMF Tools Doc ToolsProvider status