OpenLint
Type to search documentation.

OpenAPI Support

Spectral has a built-in OpenAPI Specification ruleset that you can use to validate your OpenAPI files.

Add extends: "spectral:oas" (“oas” being shorthand for OpenAPI Specification) to your ruleset file to apply rules for OpenAPI v2, v3.0, v3.1, and v3.2, depending on the appropriate OpenAPI version being used (this is automatically detected through formats).

You can see a full list of the rules in this ruleset in OpenAPI Rules.

Last updated Oct 24, 2026