Consul Connect · API Governance Rules
Consul Connect API Rules
Spectral linting rules defining API design standards and conventions for Consul Connect.
6 Rules
error 3
warn 3
Rule Categories
consul
Rules
error
consul-connect-info-title
Connect OpenAPI info.title must reference Consul Connect
$.info.title
error
consul-connect-server-defined
At least one server URL must be defined
$.servers
warn
consul-connect-v1-prefix
All paths should sit under the /v1 prefix at the server URL level
$.servers[*].url
warn
consul-connect-tag-required
Connect operations must be tagged with Intentions or CA
$.paths.*[get,put,post,delete,patch].tags[*]
error
consul-connect-operation-id-camelcase
Every operation must define an operationId using camelCase
$.paths.*[get,put,post,delete,patch].operationId
warn
consul-connect-token-security
A ConsulToken security scheme should be declared
$.components.securitySchemes