{"uid":"cap_XipiR0F3aIoHReSql7e8p","slug":"api-strale-io-858c959a","name":"OpenAPI 3.x Specification Validator","description":"Validate an OpenAPI 3.x specification. Checks required fields, endpoint definitions, schema references. Algorithmic.","url":"https://api.strale.io/x402/openapi-validate","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","required":["spec"],"properties":{"spec":{"description":"OpenAPI spec as JSON string or object"}}}},"additionalProperties":false}}},"responseSchema":null,"example":{"request":{"spec":"{\"openapi\":\"3.0.0\",\"info\":{\"title\":\"Sample API\",\"version\":\"1.0.0\"},\"paths\":{\"/items\":{\"get\":{\"summary\":\"Get items\",\"responses\":{\"200\":{\"description\":\"Successful response\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}}}}}}}}}}}}"},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0xcd951f67ad2ce38f346090d62a639f83d896228058e8574373c87e56493a6426"},"capability":"openapi-validate","latency_ms":0,"provenance":{"source":"algorithmic","fetched_at":"2026-06-17T04:11:39.033Z"}},"valid":true,"errors":[],"warnings":[{"path":"/items.get","message":"Missing 'operationId' (recommended)"},{"path":"/servers","message":"No 'servers' defined — consumers won't know the base URL"}],"error_count":0,"schema_count":0,"warning_count":2,"endpoint_count":1,"version_detected":"3.0.0"}},"exampleRequest":{"spec":"{\"openapi\":\"3.0.0\",\"info\":{\"title\":\"Sample API\",\"version\":\"1.0.0\"},\"paths\":{\"/items\":{\"get\":{\"summary\":\"Get items\",\"responses\":{\"200\":{\"description\":\"Successful response\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"integer\"},\"name\":{\"type\":\"string\"}}}}}}}}}}}}"},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O-0zOG4_F87b2_n8ozzuu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Validates an OpenAPI 3.x specification by checking required fields, endpoint definitions, and schema references for correctness.","exampleAgentPrompt":"Can you validate this OpenAPI 3.x spec and tell me if there are any errors with required fields, endpoint definitions, or schema references? Here's the spec: {\"openapi\":\"3.0.0\",\"info\":{\"title\":\"My API\",\"version\":\"1.0.0\"},\"paths\":{}}","exampleUseCases":null,"resultDescription":"Returns a validation report indicating whether the OpenAPI 3.x spec is valid, listing any errors found in required fields, endpoint definitions, or schema references.","failureModes":["Invalid or malformed JSON spec string causes parsing error","Missing 'spec' query parameter returns error","OpenAPI version other than 3.x may not be fully supported","Extremely large specs may timeout or be truncated"],"whenToPreferThis":"Use this endpoint when you need to programmatically validate an OpenAPI 3.x specification for correctness — checking required fields, endpoint definitions, and schema references — especially in CI/CD pipelines or agent workflows that generate or consume API specs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:03:49.071Z","isFirstParty":false}