Linter Commercial
An OpenAPI specification can be structurally valid and still be impossible to execute reliably. Contradictory schema constraints, incompatible media types, and ambiguous paths can pass surface-level validation, then break generated tests, mocks, contract validation, or implementation.
Specmatic Linter exists to find this gap early. It checks whether a specification is semantically consistent and executable, not only whether its syntax and structure are valid. Findings include precise source locations and actionable explanations, so authors can fix problems before they affect downstream teams and tooling.
The result: a specification that passes linting is closer to one you can execute and trust.
Watch the overview
Why executable specifications need semantic linting
See why syntax and structure checks alone cannot prove that an OpenAPI specification is internally consistent and executable.
Deeper look at dynamic specification checks
Learn which problems static checks miss and how execution-aware checks expose them.
Use it to:
- detect structural and semantic inconsistencies with curated built-in rules;
- define organization-specific rules in YAML;
- give different API groups their own profiles;
- measure API maturity from Baseline through Platinum;
- produce JSON or HTML reports; and
- block CI only for violations classified as errors.
Specmatic Linter currently supports the OpenAPI specification family: Swagger 2.0 and OpenAPI 3.0, 3.1, and 3.2 documents in YAML or JSON. It is included in Specmatic Enterprise.
Ready to lint your first specification? Start with the OpenAPI Quick Start.
Find the right guide
Linter documentation has two layers:
- Shared guides explain Docker CLI usage, CI/CD, central governance, and common troubleshooting.
- Specification Formats contains setup, configuration, rules, profiles, maturity, reports, examples, and troubleshooting specific to each supported format. OpenAPI is currently the only format listed.
When another format becomes available, its guide will appear beside OpenAPI. Only behavior proven common across formats belongs in shared guides.
Learn with the sample project
Use the Specmatic Linter Interactive Lab for a guided, hands-on path through built-in rules, custom rules, maturity levels, profiles, central configuration, reports, and CI usage.
How it works
- Create a
specmatic-linter.yamlconfiguration. - Choose a built-in ruleset or specific rules.
- Run the Enterprise Docker image with the
lintcommand against one or more specifications. - Fix reported violations or tune their severity.
- Add the same command to CI.
Start with the OpenAPI Quick Start.
To lint specifications through an HTTP API, see Specmatic Lint Server.