# LineageLint x402 — OpenAPI Zod 4 Validator Generator

> LineageLint x402 — OpenAPI Zod 4 Validator Generator is a paid API for AI agents from 47-85-47-24.sslip.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Generates Zod 4 TypeScript validator schemas from an OpenAPI spec using the built-in orders-api-zod-validators scenario

## Facts

- Endpoint: GET https://47-85-47-24.sslip.io/v1/openapi-zod
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lineagelint-x402-openapi-zod-4-validator-generator-89826695
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jzYJvzcckVtzORZVW1CLr

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 lineagelint-x402-openapi-zod-4-validator-generator-89826695
```

Example prompt: Generate Zod 4 TypeScript validators for my orders API using the orders-api-zod-validators scenario — I need the full module with schemas for all operations and components.

## When to prefer this

Choose this endpoint when you need to programmatically generate Zod 4 TypeScript runtime validators from an OpenAPI specification, particularly for orders-style APIs, and want a fully packaged TypeScript module output. Prefer this over manual schema writing or other codegen tools when you need x402 micropayment-compatible, on-demand validator generation with structured file output.

## Known failure modes

- Invalid or unsupported HTTP method returns schema validation error
- Unknown scenario value (not 'orders-api-zod-validators') causes rejection
- Payment not provided or insufficient USDC causes 402 Payment Required
- Malformed input object missing required 'type' or 'method' fields returns 400
- Network or server errors may return 5xx responses

## How this service works

An autonomous paid API accepting USDC on Base mainnet.

## Output

A JSON object containing generated TypeScript files (schemas.ts, package.json, tsconfig.json, README.md), the module name, generator ID and version, counts of operations and component schemas, write operations count, a SHA-256 hash of the source spec, and any warnings about the generated validators needing integration review.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "scenario": {
       "enum": [
        "orders-api-zod-validators"
       ],
       "type": "string",
       "description": "Built-in paid Zod 4 generation scenario"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "generator_id",
      "generator_version",
      "format",
      "module_name",
      "component_schemas_count",
      "operations_count",
      "write_operations",
      "operations",
      "files",
      "source_sha256",
      "warnings"
     ],
     "properties": {
      "files": {
       "type": "object"
      },
      "format": {
       "type": "string",
       "const": "zod-4-typescript"
      },
      "warnings": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "operations": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "module_name": {
       "type": "string"
      },
      "generator_id": {
       "type": "string"
      },
      "source_sha256": {
       "type": "string",
       "pattern": "^[0-9a-f]{64}$"
      },
      "operations_count": {
       "type": "integer",
       "minimum": 0
      },
      "write_operations": {
       "type": "integer",
       "minimum": 0
      },
      "generator_version": {
       "type": "string"
      },
      "component_schemas_count": {
       "type": "integer",
       "minimum": 0
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "files": {
   "README.md": "# Orders Validators\n",
   "package.json": "{\n  \"dependencies\": {\"zod\": \"^4.0.0\"}\n}\n",
   "tsconfig.json": "{\n  \"compilerOptions\": {\"strict\": true}\n}\n",
   "src/schemas.ts": "import { z } from \"zod\";\nexport const GetOrdersIdInputSchema = z.object({});\n"
  },
  "format": "zod-4-typescript",
  "warnings": [
   "Generated validators reflect the OpenAPI contract and require integration review."
  ],
  "operations": [
   {
    "path": "/orders/{id}",
    "method": "GET",
    "input_schema": "GetOrdersIdInputSchema",
    "operation_name": "getOrdersId",
    "response_schema": "GetOrdersIdResponseSchema"
   }
  ],
  "module_name": "Orders Validators",
  "generator_id": "zodforge-27618b0597e2a0a3",
  "source_sha256": "0000000000000000000000000000000000000000000000000000000000000000",
  "operations_count": 1,
  "write_operations": 0,
  "generator_version": "zodforge-openapi-zod4/1.0",
  "component_schemas_count": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lineagelint-x402-openapi-zod-4-validator-generator-89826695/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 47-85-47-24.sslip.io](https://www.zero.xyz/host/47-85-47-24.sslip.io/llms.txt)
