Thanos · API Governance Rules
Thanos API Rules
Spectral linting rules defining API design standards and conventions for Thanos.
8 Rules
error 1
warn 7
Rule Categories
thanos
Rules
warn
thanos-prometheus-path-prefix
Prometheus-compatible API paths must start with /api/v1/
$.paths[*]~
error
thanos-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,delete]
warn
thanos-operation-id-camel-case
Operation IDs must be camelCase
$.paths[*][*].operationId
warn
thanos-200-has-content
Successful responses should include content
$.paths[*][get].responses.200
warn
thanos-tags-title-case
Tags must use Title Case
$.paths[*][*].tags[*]
warn
thanos-summary-title-case
Summaries must use Title Case
$.paths[*][*].summary
warn
thanos-operation-description
All operations must have a description
$.paths[*][get,post,put,delete]
warn
thanos-get-no-body
GET operations should not have a request body (use POST variants for long queries)
$.paths[*].get