Scotiabank · API Governance Rules
Scotiabank API Rules
Spectral linting rules defining API design standards and conventions for Scotiabank.
10 Rules
error 4
warn 5
info 1
Rule Categories
scotiabank
Rules
error
scotiabank-oauth2-security
All operations must use OAuth2 authentication
$.components.securitySchemes
error
scotiabank-operation-ids
All operations must have operationId
$.paths[*][*]
error
scotiabank-versioned-paths
API paths must include version prefix
$.paths
warn
scotiabank-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
scotiabank-camel-case-operation-ids
Operation IDs should use camelCase
$.paths[*][*].operationId
error
scotiabank-payment-amount-required
Payment request bodies must include amount field
$.paths[?(@property.match(/payments/))].post.requestBody.content.application/json.schema
warn
scotiabank-error-responses
Operations should document standard error responses
$.paths[*][*].responses
warn
scotiabank-account-id-path-params
Account path parameters should be clearly named
$.paths[*][*].parameters[?(@.in === 'path')]
info
scotiabank-currency-enum
Currency fields should be constrained to supported currencies
$.components.schemas[*].properties.currency
warn
scotiabank-date-format
Date fields should use ISO 8601 format
$.components.schemas[*].properties[?(@ =~ /date|time/i)]