SigNoz · API Governance Rules
SigNoz API Rules
Spectral linting rules defining API design standards and conventions for SigNoz.
8 Rules
warn 6
info 2
Rule Categories
signoz
Rules
warn
signoz-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
warn
signoz-operation-id-kebab-case
OperationIds must use kebab-case naming.
$.paths[*][*].operationId
warn
signoz-api-key-header
API key authentication must use SigNoz-Api-Key header.
$.components.securitySchemes[?(@.type=='apiKey')].name
warn
signoz-paths-use-api-prefix
All paths must begin with /api/v prefix.
$.paths[*]~
info
signoz-response-json
All responses should return application/json content type.
$.paths[*][*].responses[*].content
warn
signoz-tags-defined
Operations should reference tags defined at the top level.
$.paths[*][*].tags[*]
warn
signoz-error-response-schema
Error responses (4xx/5xx) should have a consistent schema.
$.paths[*][*].responses[?(@property >= '400')].content['application/json'].schema
info
signoz-parameters-described
All parameters must have a description.
$.paths[*][*].parameters[?(@.in=='query' || @.in=='path')]