{"uid":"cap_ds0S6V9s8jJxqIBsvvVIK","slug":"json-schema-validate-lite-8e4684c1","name":"JSON Schema Validate Lite","description":"Lite validate object required keys and types vs a tiny schema. Call when agent preflight without full jsonschema engines. Returns ok and errors as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/json-schema-validate-lite","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"schema":{"type":"object","description":"Lite JSON schema object"},"instance":{"type":"object","description":"JSON instance object"}}},"responseSchema":{"type":"json","example":{"ok":true,"errors":[],"schema":"delx/util-json-schema-validate-lite/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_zyomEj0RpcYsIHQ7w2MDl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates a JSON instance object against a lightweight schema, checking required keys and types, returning deterministic ok/errors output.","exampleAgentPrompt":"Check whether this JSON object has all required keys and correct types according to my schema — the object is {\"name\":\"Alice\",\"age\":\"thirty\"} and the schema requires name as string and age as integer.","exampleUseCases":[{"title":"Agent output preflight check","prompt":"Before I send this agent-generated payload downstream, can you validate it against my schema to make sure all required fields are present and the types are correct? Schema expects userId as string, amount as number, and timestamp as integer."},{"title":"Config object structure verification","prompt":"I have a config object my agent produced and I want to check it matches the expected schema — required keys are host, port, and enabled, with port as a number and enabled as boolean. Can you validate it?"},{"title":"API response shape check","prompt":"The API just returned a JSON object and I want to quickly verify it has the right keys and types before my agent processes it — schema needs id as string, score as number, and tags as an array."}],"resultDescription":"Returns a deterministic JSON response indicating whether validation passed (ok: true) or failed (ok: false), along with a list of specific errors describing missing required keys or type mismatches for each failing field.","failureModes":["Missing 'schema' or 'instance' field in request body returns an error","Schema uses unsupported JSON Schema keywords beyond key presence and type checks (only lite subset supported)","Deeply nested or array-type validation may not be fully supported","Payment not provided or insufficient USDC results in x402 payment-required response","Malformed JSON in request body causes parse error"],"whenToPreferThis":"Choose this endpoint when you need a fast, deterministic, zero-dependency preflight check on a JSON object's required keys and primitive types — especially inside an agent pipeline that doesn't have access to a full jsonschema engine. Ideal for agent-generated payload validation before downstream API calls, or for quickly checking config objects and API responses at low cost ($0.001 USDC). Not suitable for complex JSON Schema features like pattern matching, conditionals, or deep nested validation.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:58:44.755Z","isFirstParty":false}