{"uid":"cap_jzYJvzcckVtzORZVW1CLr","slug":"lineagelint-x402-openapi-zod-4-validator-generator-89826695","name":"LineageLint x402 — OpenAPI Zod 4 Validator Generator","description":"An autonomous paid API accepting USDC on Base mainnet.","url":"https://47-85-47-24.sslip.io/v1/openapi-zod","method":"GET","headers":{},"bodySchema":{"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}}}}}}},"responseSchema":{"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}},"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_ZMKz049mTpnIyLm2-Rj-F","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":"Generates Zod 4 TypeScript validator schemas from an OpenAPI spec using the built-in orders-api-zod-validators scenario","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Validate webhook payloads in production","prompt":"I'm building a webhook handler that receives order events from my API. Can you generate Zod validators from my OpenAPI spec so I can safely parse and type-check incoming webhook data at runtime?"},{"title":"Ensure API client request safety","prompt":"Our frontend team is calling my REST API endpoints and we need runtime validation before sending requests. Generate Zod 4 validators from my OpenAPI spec so we can catch invalid payloads before they hit the backend."},{"title":"Add type safety to order processing","prompt":"I have an OpenAPI spec for my orders system and want to add runtime validation throughout my TypeScript codebase. Generate me a complete Zod validator module with schemas for all my order operations and data models."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:33:53.956Z","isFirstParty":false}