Rook · API Governance Rules
Rook API Rules
Spectral linting rules defining API design standards and conventions for Rook.
9 Rules
error 2
warn 5
info 2
Rule Categories
rook
Rules
warn
rook-operation-summary-title-case
All operation summaries must use Title Case
$.paths[*][*].summary
warn
rook-operation-id-camel-case
operationId must use camelCase
$.paths[*][*].operationId
error
rook-s3-path-bucket-required
S3 paths with /{key} must also include /{bucket} parameter
$.paths[*][get,put,delete,head].parameters[?(@.in == 'path')]
info
rook-s3-response-xml-content-type
S3-compatible responses should use application/xml content type
$.paths[*][*].responses[*].content
warn
rook-operation-description-required
All operations must have a description
$.paths[*][get,put,post,delete,head]
warn
rook-tags-title-case
All tags must use Title Case
$.paths[*][*].tags[*]
info
rook-error-response-schema
Error responses should reference an ErrorResponse schema
$.paths[*][*].responses[4xx,5xx]
error
rook-server-defined
At least one server must be defined
$
warn
rook-info-contact
Info object must include contact information
$.info