SwaggerHub · API Governance Rules
SwaggerHub API Rules
Spectral linting rules defining API design standards and conventions for SwaggerHub.
9 Rules
error 4
warn 5
Rule Categories
swaggerhub
Rules
warn
swaggerhub-operations-have-tags
All SwaggerHub API operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
swaggerhub-operations-have-summaries
All SwaggerHub API operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
swaggerhub-summaries-title-case
SwaggerHub operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
error
swaggerhub-operations-have-operation-ids
All SwaggerHub API operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
swaggerhub-operations-have-descriptions
All SwaggerHub API operations should have a description
$.paths[*][get,post,put,patch,delete]
error
swaggerhub-path-params-required
Path parameters must be marked as required
$.paths[*][*].parameters[?(@.in == 'path')]
warn
swaggerhub-schemas-have-descriptions
All component schemas must have a description
$.components.schemas[*]
warn
swaggerhub-responses-have-descriptions
All response objects must have a description
$.paths[*][*].responses[*]
error
swaggerhub-security-scheme-defined
API must define at least one security scheme
$.components