SWIFT · API Governance Rules
SWIFT API Rules
Spectral linting rules defining API design standards and conventions for SWIFT.
8 Rules
warn 7
Rule Categories
swift
Rules
warn
swift-oauth2-security
SWIFT API endpoints must use OAuth2 security scheme
$.components.securitySchemes
warn
swift-identifier-pattern
Financial identifier path parameters must have regex pattern validation
$.components.parameters[?(@.in == 'path')].schema
warn
swift-versioned-paths
SWIFT API paths should include version prefix (/v2/)
$.paths
warn
swift-operation-id-camel-case
Operation IDs must use camelCase naming convention
$.paths[*][get,post,put,patch,delete]
warn
swift-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
hint
swift-validity-response
Validation endpoints should return a validity result with a 'valid' boolean
$.paths[?(@property.endsWith('validity'))].get.responses.200.content.application/json.schema
warn
swift-not-found-response
GET lookup endpoints should document 404 responses
$.paths[*].get.responses
warn
swift-operation-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]