Contour · API Governance Rules
Contour API Rules
Spectral linting rules defining API design standards and conventions for Contour.
5 Rules
error 4
warn 1
Rule Categories
contour
Rules
error
contour-gateway-info-title
Gateway OpenAPI info.title must reference Contour Gateway
$.info.title
error
contour-gateway-server-defined
At least one server URL must be defined for the Kubernetes API
$.servers
warn
contour-gateway-tag-required
Tags must declare GatewayClass, Gateway, HTTPRoute, or TLSRoute scope
$.tags[*].name
error
contour-gateway-operation-id-camelcase
Every operation must define an operationId using camelCase
$.paths.*[get,put,post,delete,patch].operationId
error
contour-gateway-api-group-prefix
Gateway API paths must live under /apis/gateway.networking.k8s.io
$.paths