validate_openapi
Validates OpenAPI 3.0/3.1/3.2 or Swagger 2.0 documents, returning all errors with JSON Pointer, line, column, plus lint warnings so API specs can be fixed.
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.
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`. |