Validate Spec
validate_specValidate an OpenAPI specification against the standard. Provide either content to validate directly, or specId to validate an existing spec. Set mode to 'import' for a dry run of import_spec instead: same errors and warnings, plus what would be created (endpoint, schema and folder counts), the detected format and whether a 3.0 → 3.1 conversion happened. Mode 'push' with specId and content is the dry run of push_spec. Nothing is written either way.
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_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | No | For mode 'push': major version line instead of versionId | |
| mode | No | What to check: 'openapi' (default), 'import' or 'push' | openapi |
| format | No | Format hint: 'yaml', 'json', or omit for auto-detection | |
| specId | No | Public ID (GUID) of an existing spec to validate. If provided, the spec is exported first and then validated. | |
| content | No | The OpenAPI specification content to validate (YAML or JSON). Provide either content or specId, not both. | |
| versionId | No | For mode 'push': draft version (UUID), omit for the single draft | |
| convertToOpenApi31 | No | For mode 'import': convert a 3.0 document to 3.1 (default false) | |
| shortenSchemaNames | No | For mode 'import': shorten generated schema names (default false) |