SpotHero · API Governance Rules
SpotHero API Rules
Spectral linting rules defining API design standards and conventions for SpotHero.
14 Rules
error 6
warn 7
info 1
Rule Categories
spothero
Rules
error
spothero-operation-ids-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
error
spothero-operation-summary-required
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
spothero-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
error
spothero-tags-required
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
spothero-response-200-required
GET operations must have a 200 response
$.paths[*].get
warn
spothero-response-201-post
POST operations that create resources should return 201
$.paths[*].post
warn
spothero-error-401-required
All operations must document 401 Unauthorized response
$.paths[*][get,post,put,patch,delete]
warn
spothero-error-429-required
All operations must document 429 Too Many Requests response
$.paths[*][get,post,put,patch,delete]
warn
spothero-path-kebab-case
Path segments must use kebab-case
$.paths[*]~
error
spothero-api-key-auth
API must use API key authentication
$.components.securitySchemes.ApiKeyAuth
error
spothero-request-body-content-type
Request bodies must specify application/json content type
$.paths[*][post,put,patch].requestBody.content
warn
spothero-response-schema-required
Success responses must include a schema
$.paths[*][get,post].responses[200,201].content.application/json
warn
spothero-parameters-have-descriptions
Parameters must have descriptions
$.paths[*][get,post,put,patch,delete].parameters[*]
info
spothero-schemas-have-descriptions
Schema properties should have descriptions
$.components.schemas[*].properties[*]