Containerd · API Governance Rules
Containerd API Rules
Spectral linting rules defining API design standards and conventions for Containerd.
7 Rules
error 4
warn 2
info 1
Rule Categories
containerd
Rules
error
containerd-info-contact
API contact information must be present.
$.info
error
containerd-info-license
containerd APIs must declare an Apache 2.0 license.
$.info.license
info
containerd-server-localhost
Metrics endpoints typically bind to localhost; warn if the spec advertises a non-loopback host.
$.servers[*].url
error
containerd-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
containerd-operation-tags
Operations must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
containerd-prometheus-content-type
Metrics responses must declare a Prometheus text-format content type.
$.paths[*].get.responses['200'].content
error
containerd-no-mutations
The containerd metrics endpoint must not declare mutating operations.
$.paths[*]