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_V156
Swagger v2 Syntax ValidationSWAGGER20SYNTAX_V11
Swagger v2 Standard ValidationSWAGGER20STANDARDS_V121

Linting rulesets

These rulesets are style checks and recommendations. Breaking one of their rules doesn't mean your definition violates the OpenAPI standard, but it can lower the quality of what APIMatic generates from it.

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

On this page