CRI-O · API Governance Rules
CRI-O API Rules
Spectral linting rules defining API design standards and conventions for CRI-O.
7 Rules
error 6
warn 1
Rule Categories
cri
Rules
error
cri-o-metrics-info-license
API info object should declare the Apache 2.0 license.
$.info.license
warn
cri-o-metrics-server-port
Server URL should reference the default metrics port 9090.
$.servers[*].url
error
cri-o-metrics-paths
API must define the /metrics path.
$.paths
error
cri-o-metrics-get-only
Metrics endpoint must only support GET.
$.paths['/metrics']
error
cri-o-metrics-text-plain-response
Metrics 200 response must be text/plain (Prometheus exposition format).
$.paths['/metrics'].get.responses.200.content
error
cri-o-metrics-operation-id
Operations must define an operationId.
$.paths.*.get
error
cri-o-metrics-tags
Operations must define tags.
$.paths.*.get