TrueLayer · API Governance Rules
TrueLayer API Rules
Spectral linting rules defining API design standards and conventions for TrueLayer.
11 Rules
error 6
warn 2
Rule Categories
truelayer
Rules
warn
truelayer-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
truelayer-operation-tags-required
All operations must have at least one tag
$.paths[*][*]
error
truelayer-v3-path-prefix
All paths must use the /v3/ prefix
$.paths[*]~
error
truelayer-idempotency-key-required
POST operations must require an Idempotency-Key header
$.paths[*][post].parameters[*]
error
truelayer-signature-header-post
POST payment operations require Tl-Signature header
$.paths[/v3/payments,/v3/mandates,/v3/payouts][post].parameters
error
truelayer-amount-minor-units
Payment amounts must be in minor units (integer), not decimal
$.components.schemas.*.properties.amount_in_minor
warn
truelayer-currency-enum
Currency fields must be restricted to supported values (GBP, EUR)
$.components.schemas.*.properties.currency
hint
truelayer-uuid-format
ID fields should use UUID format
$.components.schemas.*.properties.id
hint
truelayer-webhook-type-documented
Webhook types should be documented as enum values
$.components.schemas.*.properties.type
hint
truelayer-error-trace-id
Error responses should include a trace_id for debugging
$.paths[*][*].responses[4*,5*].content.application/json.schema.properties
error
truelayer-success-2xx-defined
All operations must define a 200 success response
$.paths[*][get,post,delete]