# netintel.dev Schema Validator

> netintel.dev Schema Validator is a paid API for AI agents from netintel.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Validates JSON data against a supplied schema, returning precise errors with JSON paths, with optional type coercion and repair of invalid data.

## Facts

- Endpoint: POST https://netintel.dev/schema/validate
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/netintel-dev-schema-validator-4305d3ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pYL3az-93RVvaIEcvlHys

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability netintel-dev-schema-validator-4305d3ac -d '<json body>'
```

Example prompt: Can you validate this user profile object against my schema — it needs email, age (number), and tags (string array) — and if it's invalid, also return a repaired version with coercion turned on?

## When to prefer this

Choose this endpoint when you need deterministic, schema-driven validation with precise JSON-path error reporting before acting on structured data. Prefer it over LLM-based checks when you need repeatable, auditable results. The optional coercion and repair features make it especially useful in pipelines where upstream data is loosely typed or partially malformed. It supports both full JSON Schema and a simplified shorthand map, making it accessible for quick field checks without writing verbose schemas.

## Known failure modes

- Data exceeds 64KB limit — returns error
- Malformed input schema that cannot be parsed — returns schema parse error
- Invalid bodyType for the payload — returns 400-level error
- LLM repair fallback disabled (allow_llm=false) and deterministic repair insufficient — repaired copy may still be invalid
- Ambiguous simplified field-type map syntax — may produce unexpected validation behavior

## How this service works

Validate data against a supplied schema — checks required fields, nested objects, arrays, enums, string formats, numeric ranges, lengths, and additional-property rules deterministically, with optional type coercion and repair, returning precise errors with JSON paths so agents can verify structured data before acting on it.

## Output

Returns a JSON object with: valid (boolean), error_count, errors array (each with JSON path and description), grade (letter), score (0-1), coerced (boolean indicating if coercion was applied), repaired (fixed copy of data if repair=true), is_repaired_valid (boolean or null), warnings, and findings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "data",
      "schema"
     ],
     "properties": {
      "data": {
       "type": [
        "object",
        "array",
        "string"
       ],
       "description": "The data to validate: an object, an array, or a JSON string (malformed strings are repaired first). Max 64KB."
      },
      "coerce": {
       "type": "boolean",
       "description": "Default false. Coerce values to the declared types where lossless (\"5\" → 5, \"yes\" → true)."
      },
      "repair": {
       "type": "boolean",
       "description": "Default false. When invalid, also return a repaired copy of the data plus is_repaired_valid. Deterministic first (coercion, declared defaults, enum casing, strict extra-key removal)."
      },
      "schema": {
       "type": "object",
       "description": "JSON Schema ({\"type\":\"object\",\"properties\":{...},\"required\":[...]}) or a simplified field→type map ({\"age\":\"number\",\"email\":\"email\",\"tags\":\"string[]\",\"bio\":\"string?\"}). In the map form a field is required unless suffixed with '?'. Formats: email, url, date, date-time, uuid, ipv4, ipv6, hostname."
      },
      "allow_llm": {
       "type": "boolean",
       "description": "Default true. Gates the LLM repair fallback only — validation itself is always deterministic."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "grade": {
       "type": "string"
      },
      "score": {
       "type": "number"
      },
      "valid": {
       "type": "boolean"
      },
      "errors": {
       "type": "array"
      },
      "coerced": {
       "type": "boolean"
      },
      "findings": {
       "type": "array"
      },
      "repaired": {
       "type": [
        "object",
        "array",
 
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "grade": "A",
  "score": 100,
  "valid": false,
  "errors": [
   {
    "path": "$.email",
    "message": "required field is missing",
    "expected": "required",
    "received": "undefined"
   },
   {
    "path": "$.age",
    "message": "expected number, received string",
    "expected": "number",
    "received": "string"
   }
  ],
  "coerced": false,
  "findings": [
   {
    "rule": "data_invalid",
    "detail": "Data does not satisfy the schema (2 errors)",
    "deduction": 0
   }
  ],
  "repaired": null,
  "warnings": [],
  "error_count": 2,
  "is_repaired_valid": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/netintel-dev-schema-validator-4305d3ac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from netintel.dev](https://www.zero.xyz/host/netintel.dev/llms.txt)
