Cloud Storage · API Governance Rules
Cloud Storage API Rules
Spectral linting rules defining API design standards and conventions for Cloud Storage.
9 Rules
error 4
warn 4
info 1
Rule Categories
cs
Rules
error
cs-info-contact
API contact information must be present.
$.info
warn
cs-info-license
API license must be declared.
$.info
error
cs-server-https
All server URLs must use HTTPS.
$.servers[*].url
error
cs-security-required
A security scheme must be defined (signed requests or token).
$.components.securitySchemes
warn
cs-operation-tags
Every operation must declare at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
cs-operation-summary
Every operation must include a short summary.
$.paths[*][get,post,put,patch,delete]
error
cs-operation-id
Every operation must declare a unique operationId.
$.paths[*][get,post,put,patch,delete]
warn
cs-error-responses
Mutating operations should declare 4xx error responses.
$.paths[*][post,put,patch,delete].responses
info
cs-list-pagination
List-objects endpoints should support pagination markers.
$.paths[?(@property.match(/list$|objects$|buckets$|volumes$|snapshots$/))].get.parameters[*].name