Define & Validate APIsValidation RulesetsOpenAPI Rulesets

OpenAPI Rulesets Overview

The rulesets APIMatic uses to validate and lint OpenAPI documents.

APIMatic validates OpenAPI documents (v2.0 and v3.x) against the rulesets below. These include rules defined by the standard as well as additional checks APIMatic enforces for better output.

Validation rulesets

These rulesets make sure your API definition conforms to its format and is technically correct.

RulesetCode prefixRules
OpenAPI v3 Syntax ValidationOPENAPI3SYNTAX_V21
OpenAPI v3 Standard ValidationOPENAPI3STANDARDS_V155
Swagger v2 Syntax ValidationSWAGGER20SYNTAX_V11
Swagger v2 Standard ValidationSWAGGER20STANDARDS_V121

Linting rulesets

These rulesets are style checks and recommendations. They improve the definition without affecting whether it's valid.

OpenAPI/Swagger 1.x documents aren't covered on these pages.

On this page