Truist Financial · API Governance Rules
Truist Financial API Rules
Spectral linting rules defining API design standards and conventions for Truist Financial.
12 Rules
error 2
warn 8
info 2
Rule Categories
truist
Rules
warn
truist-operation-ids-camel-case
Truist operation IDs must use camelCase format.
$.paths.*[get,post,put,patch,delete]
warn
truist-path-segments-kebab-case
Truist URL path segments must use kebab-case (lowercase with hyphens).
$.paths
info
truist-versioned-paths
Truist paths should NOT include version in the path (versioning is handled at server level).
$.paths
error
truist-personal-or-commercial-prefix
Truist paths must start with /personal or /commercial to indicate product line.
$.paths
error
truist-oauth2-security
All Truist API operations must require OAuth2 security.
$.paths.*[get,post,put,patch,delete]
warn
truist-response-200-json
Truist 200 responses must include application/json content type.
$.paths.*[get,post,put,patch,delete].responses.200
warn
truist-operations-have-tags
All Truist operations must have at least one tag for categorization.
$.paths.*[get,post,put,patch,delete]
warn
truist-amount-fields-double
Amount/balance fields in Truist schemas must use number type with double format.
$.components.schemas.*.properties[*Balance,*Amount,amount,balance]
warn
truist-account-id-string
Account and transaction identifiers must be string type.
$.components.schemas.*.properties[accountId,transactionId,customerId]
warn
truist-date-format
Date fields in Truist schemas must use date or date-time format.
$.components.schemas.*.properties[*Date,*DateTime]
info
truist-currency-default-usd
Currency fields in Truist schemas should default to USD.
$.components.schemas.*.properties.currency
warn
truist-pagination-params
Collection endpoints must support limit and offset pagination parameters.
$.paths.*[get]