TD Bank · API Governance Rules
TD Bank API Rules
Spectral linting rules defining API design standards and conventions for TD Bank.
8 Rules
error 4
warn 4
Rule Categories
td
Rules
error
td-bank-https-only
TD Bank APIs must use HTTPS.
$.servers[*].url
error
td-bank-info-contact
API definitions must declare contact information.
$.info
error
td-bank-oauth2-required
FDX Data APIs must declare OAuth 2.0 security.
$.components.securitySchemes
warn
td-bank-fdx-tagging
FDX-aligned operations should declare an Accounts / Transactions / Statements / Tax Forms / Customers / Consents / Notifications tag.
$.paths[*][get,post,put,delete,patch]
warn
td-bank-title-case-summary
Operation summaries should be Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
td-bank-no-pan
Card data must not be exposed as a raw PAN — use tokenized references.
$..properties
warn
td-bank-account-id-string
accountId parameters MUST be strings (FDX convention).
$.paths[*][*].parameters[?(@.name=='accountId')].schema.type
warn
td-bank-consent-id-string
consentId parameters MUST be strings.
$.paths[*][*].parameters[?(@.name=='consentId')].schema.type