Cloud Native Buildpacks · API Governance Rules
Cloud Native Buildpacks API Rules
Spectral linting rules defining API design standards and conventions for Cloud Native Buildpacks.
8 Rules
error 3
warn 4
info 1
Rule Categories
cnb
Rules
error
cnb-info-contact
API contact information must be present.
$.info
warn
cnb-info-license
API license must be declared (CNB is Apache-2.0).
$.info
error
cnb-server-https
All server URLs must use HTTPS.
$.servers[*].url
warn
cnb-operation-tags
Every operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
cnb-operation-summary
Every operation must include a short summary.
$.paths[*][get,post,put,patch,delete]
error
cnb-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
cnb-error-responses
Mutating operations should declare 4xx error responses.
$.paths[*][post,put,patch,delete].responses
info
cnb-buildpack-id-pattern
Buildpack IDs should follow the reverse-DNS convention.
$.paths[?(@property.match(/buildpack/))]