CoreDNS · API Governance Rules
CoreDNS API Rules
Spectral linting rules defining API design standards and conventions for CoreDNS.
8 Rules
error 6
warn 2
Rule Categories
coredns
Rules
error
coredns-health-info-license
API info object should include Apache 2.0 license.
$.info.license
warn
coredns-health-server-localhost
Servers should reference the localhost CoreDNS health endpoint.
$.servers[*].url
error
coredns-health-paths
API must define /health and /ready paths.
$.paths
error
coredns-health-get-only
Health and readiness endpoints must only support GET.
$.paths['/health','/ready']
warn
coredns-health-text-plain-response
Health and readiness 200 responses should return text/plain.
$.paths['/health','/ready'].get.responses.200.content
error
coredns-health-503-response
Health and readiness endpoints should document 503 responses.
$.paths['/health','/ready'].get.responses
error
coredns-health-operation-id
Operations must define an operationId.
$.paths.*.get
error
coredns-health-tags
Operations must define tags.
$.paths.*.get