US Bancorp · API Governance Rules
US Bancorp API Rules
Spectral linting rules defining API design standards and conventions for US Bancorp.
9 Rules
error 2
warn 6
info 1
Rule Categories
usbank
Rules
warn
usbank-operations-have-tags
All US Bank API operations must have at least one tag for grouping
$.paths[*][get,post,put,patch,delete]
warn
usbank-correlation-id-required
All US Bank API operations must accept a Correlation-ID header for tracing
$.paths[*][get,post,put,patch,delete].parameters[?(@.name == 'Correlation-ID')]
error
usbank-https-servers
All US Bank API servers must use HTTPS
$.servers[*].url
warn
usbank-operations-have-operation-ids
All operations must have operationId for SDK generation
$.paths[*][get,post,put,patch,delete]
info
usbank-operation-ids-camel-case
US Bank operation IDs should use camelCase
$.paths[*][get,post,put,patch,delete].operationId
warn
usbank-responses-have-content
All 200/201 responses should define content schema
$.paths[*][*].responses[?(@property == '200' || @property == '201')]
warn
usbank-error-responses-defined
All POST/PUT/PATCH operations should define 400 error responses
$.paths[*][post,put,patch]
error
usbank-security-defined
US Bank API operations should have security defined (OAuth MFA)
$.security
warn
usbank-parameters-have-descriptions
All parameters should include descriptions
$.paths[*][*].parameters[*]