Shell · API Governance Rules
Shell API Rules
Spectral linting rules defining API design standards and conventions for Shell.
13 Rules
error 3
warn 5
info 5
Rule Categories
shell
Rules
warn
shell-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
shell-path-kebab-case
Path segments must use kebab-case or curly-brace parameters
$.paths
error
shell-must-have-summary
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
shell-must-have-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
shell-must-have-operation-id
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
info
shell-oauth2-security
Shell APIs use OAuth2 client credentials for authentication
$.components.securitySchemes[*]
info
shell-colcocode-required
B2B Mobility endpoints require colCoCode (Collecting Company Code) parameter
$.paths[*][get,post].parameters[*]
error
shell-no-trailing-slash
Paths must not have trailing slashes
$.paths
info
shell-parameters-have-description
All parameters should have a description
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
shell-response-200-must-have-content
200 responses must have content defined
$.paths[*][get,post,put,patch,delete].responses[200]
info
shell-schemas-use-camel-case
Schema property names should use camelCase
$.components.schemas[*].properties
info
shell-pagination-fields
Paginated list responses should include totalCount, currentPage, pageCount
$.components.schemas[*ListResponse]
warn
shell-versioned-servers
Shell API servers must include version in the URL path
$.servers[*].url