oasdiff_validate
Validate a single OpenAPI specification against the OpenAPI and JSON Schema rules. Pass the spec as YAML or JSON; returns the findings (empty when the spec is valid). Use this when you have one spec and want to check it is well-formed. For comparing two specs, use oasdiff_breaking_changes, oasdiff_changelog, or oasdiff_diff instead. The spec must be self-contained (external $ref URLs or files are not resolved).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | Yes | the OpenAPI specification to validate, as YAML or JSON |