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. Nothing is written either way.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | What to check: 'openapi' (default) or 'import' | 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. | |
| 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) |