Xweather · API Governance Rules
Xweather API Rules
Spectral linting rules defining API design standards and conventions for Xweather.
11 Rules
error 4
warn 6
Rule Categories
xweather
Rules
error
xweather-operation-has-summary
All Xweather API operations must have a summary.
$.paths[*][get,post,put,delete,patch]
warn
xweather-operation-has-tags
All Xweather API operations must be tagged.
$.paths[*][get,post,put,delete,patch]
error
xweather-operation-has-operation-id
All operations must have an operationId.
$.paths[*][get,post,put,delete,patch]
warn
xweather-operation-has-description
All Xweather operations must include a description explaining the data returned.
$.paths[*][get,post,put,delete,patch]
error
xweather-response-200-present
All GET operations must define a 200 success response.
$.paths[*].get
warn
xweather-path-uses-kebab-case
All path segments must use kebab-case.
$.paths
warn
xweather-operation-id-camel-case
operationId values should use camelCase.
$.paths[*][get,post,put,delete,patch].operationId
warn
xweather-tags-title-case
Tags must use Title Case.
$.tags[*].name
warn
xweather-info-has-contact
API info must include contact information.
$.info
hint
xweather-schemas-have-descriptions
All schema properties should have descriptions.
$.components.schemas[*].properties[*]
error
xweather-success-response-has-content
Success responses must define content.
$.paths[*][*].responses[200,201]