Cloud Foundry · API Governance Rules
Cloud Foundry API Rules
Spectral linting rules defining API design standards and conventions for Cloud Foundry.
10 Rules
error 4
warn 5
info 1
Rule Categories
cf
Rules
error
cf-info-contact
API contact information must be present.
$.info
warn
cf-info-license
API license must be declared.
$.info
error
cf-server-https
All server URLs must use HTTPS.
$.servers[*].url
warn
cf-server-versioned
Cloud Controller server URLs should include /v3.
$.servers[*].url
error
cf-oauth-security
OAuth 2.0 must be the declared security scheme.
$.components.securitySchemes[*].type
warn
cf-operation-tags
Every operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
cf-operation-summary
Every operation must include a short summary.
$.paths[*][get,post,put,patch,delete]
error
cf-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
cf-error-responses
Mutating operations should declare 4xx error responses.
$.paths[*][post,put,patch,delete].responses
info
cf-pagination-fields
List endpoints should support page, per_page, and order_by parameters.
$.paths[?(@property.match(/apps$|spaces$|organizations$|routes$|service_instances$/))].get.parameters[*].name