validate_openapi
Checks OpenAPI 3.x or Swagger 2.0 documents and returns all errors with JSON Pointer, line/column locations, plus lint warnings.
Instructions
Validate an OpenAPI 3.0/3.1/3.2 or Swagger 2.0 document. Returns every error (not just the first) with its JSON Pointer, line and column, plus lint warnings.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "validate_openapi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | The document as YAML or JSON text (or a JSON object). | |
| spec_path | No | A local file instead of `spec`. |