CoreDNS · API Governance Rules
CoreDNS API Rules
Spectral linting rules defining API design standards and conventions for CoreDNS.
8 Rules
error 5
warn 2
info 1
Rule Categories
coredns
Rules
error
coredns-metrics-info-license
API info object should declare Apache 2.0.
$.info.license
warn
coredns-metrics-port-9153
Servers should reference port 9153 (default Prometheus metrics port).
$.servers[*].url
error
coredns-metrics-path
API must define the /metrics path.
$.paths
error
coredns-metrics-get-only
The /metrics endpoint must only support GET.
$.paths['/metrics']
warn
coredns-metrics-prometheus-response
200 response should return text/plain Prometheus exposition format.
$.paths['/metrics'].get.responses.200.content
error
coredns-metrics-operation-id
Operations must define an operationId.
$.paths.*.get
error
coredns-metrics-tags
Operations must define tags.
$.paths.*.get
info
coredns-metrics-no-auth
Metrics endpoint typically does not require authentication; consider documenting this.
$.paths['/metrics'].get