Total System Services · API Governance Rules
Total System Services API Rules
Spectral linting rules defining API design standards and conventions for Total System Services.
10 Rules
error 4
warn 6
Rule Categories
tsys
Rules
warn
tsys-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
tsys-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
warn
tsys-paths-kebab-case
API paths must use kebab-case
$.paths[*]~
error
tsys-must-have-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
tsys-must-have-200-or-201
All operations must define a success response
$.paths[*][get,post,put,patch,delete].responses
error
tsys-payment-security
Payment endpoints must use security schemes
$.paths[/transactions/authorize,/transactions/sale][post]
warn
tsys-financial-amount-format
Financial amount fields must use float format
$.components.schemas[*].properties.amount
error
tsys-pci-card-data
Card number fields must be described as tokenized or masked
$.components.schemas[*].properties.cardNumber
warn
tsys-pagination-required
List operations should support pagination
$.paths[*][get][?(@.operationId =~ /^list/)]
warn
tsys-error-response-required
All operations must define error responses
$.paths[*][post,put,delete].responses