# OpenAPI 3.x Specification Validator

> OpenAPI 3.x Specification Validator is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-09-13).

Validates an OpenAPI 3.x specification by checking required fields, endpoint definitions, and schema references for correctness.

## Facts

- Endpoint: GET https://api.strale.io/x402/openapi-validate
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-858c959a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XipiR0F3aIoHReSql7e8p

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 api-strale-io-858c959a
```

Example prompt: 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":{}}

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Validate an OpenAPI 3.x specification. Checks required fields, endpoint definitions, schema references. Algorithmic.

## Output

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.

## Example request

```json
{
 "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\"}}}}}}}}}}}}"
}
```

## 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",
     "required": [
      "spec"
     ],
     "properties": {
      "spec": {
       "description": "OpenAPI spec as JSON string or object"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-858c959a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
