Kushki · API Governance Rules
Kushki API Rules
Spectral linting rules defining API design standards and conventions for Kushki.
9 Rules
error 5
warn 4
Rule Categories
kushki
Rules
error
kushki-summary-title-case-with-prefix
Operation summaries must use Title Case and start with "Kushki".
$.paths[*][*].summary
warn
kushki-operation-description
Every operation must have a description.
$.paths[*][get,post,put,patch,delete]
error
kushki-operation-id-camel-case
operationId must be camelCase.
$.paths[*][*].operationId
error
kushki-servers-defined
Each OpenAPI document must declare at least one server.
$.servers
error
kushki-server-host-allowed
Servers must point at *.kushkipagos.com.
$.servers[*].url
error
kushki-security-scheme-merchant-id
SecuritySchemes must use the Public-Merchant-Id or Private-Merchant-Id apiKey header.
$.components.securitySchemes[*]
warn
kushki-amount-requires-currency
Amount/money schemas must require currency.
$.components.schemas[?(@.properties && @.properties.currency)]
warn
kushki-currency-enum
Currency enums must match the LatAm currencies Kushki supports.
$..properties.currency.enum
warn
kushki-card-path-prefix
Card operations must be exposed under /card/v1.
$.paths