Swagger v2 Syntax Validation
Overview
Validation checks performed on provided Swagger v2 file to check its conformance to Swagger 2.n syntax rules.
Property | Value |
---|---|
Id | swagger-v2-syntax-validation |
Code | SWAGGER20SYNTAX_V |
Ruleset Type | Validation |
Default Severity of All Rules | Error |
Rule System | Syntax |
Tags | swagger2 swagger syntax validation |
For More Information
- https://github.com/OAI/OpenAPI-Specification/blob/main/versions/2.0.md
- https://docs.apimatic.io/rulesets/overview/
Categories of Rules
- API Server (SWAGGER20SYNTAX_V001 - SWAGGER20SYNTAX_V019)
- Paths (SWAGGER20SYNTAX_V020 - SWAGGER20SYNTAX_V039)
- Responses (SWAGGER20SYNTAX_V040 - SWAGGER20SYNTAX_V059)
- References (SWAGGER20SYNTAX_V060 - SWAGGER20SYNTAX_V079)
- Specification Extensions (SWAGGER20SYNTAX_V080 - SWAGGER20SYNTAX_V099)
- Miscellaneous (SWAGGER20SYNTAX_V100 - SWAGGER20SYNTAX_V119)
API Server Rules
- no-host-path-templating (SWAGGER20SYNTAX_V001)
- base-path-starts-with-leading-slash (SWAGGER20SYNTAX_V002)
- no-base-path-templating (SWAGGER20SYNTAX_V003)