Flutterwave · API Governance Rules
Flutterwave API Rules
Spectral linting rules defining API design standards and conventions for Flutterwave.
12 Rules
error 3
warn 7
info 2
Rule Categories
flutterwave
Rules
warn
flutterwave-info-contact
All Flutterwave OpenAPI specs must declare an info.contact block pointing to the developer portal.
$.info
warn
flutterwave-info-license
All Flutterwave OpenAPI specs must include an info.license block.
$.info
error
flutterwave-server-url-cloud
Flutterwave production server URL must be on api.flutterwave.cloud.
$.servers[?(@.description == 'Production')].url
warn
flutterwave-server-url-sandbox
Flutterwave sandbox server URL must be on api.flutterwave.cloud/f4b/sandbox.
$.servers[?(@.description == 'Sandbox')].url
warn
flutterwave-operation-summary-title-case
Operation summaries must be Title Case.
$.paths[*][get,post,put,delete,patch].summary
warn
flutterwave-operation-id-camel-case
operationId must be camelCase.
$.paths[*][get,post,put,delete,patch].operationId
info
flutterwave-mutating-ops-idempotency-key
POST and PUT operations should accept an X-Idempotency-Key header.
$.paths[*][post,put]
error
flutterwave-security-oauth2
Flutterwave APIs must declare OAuth2 client credentials security.
$.components.securitySchemes
warn
flutterwave-snake-case-properties
Schema property names must be snake_case (matches Flutterwave's JSON conventions).
$.components.schemas[*].properties[*]~
warn
flutterwave-monetary-fields-have-currency
When an `amount` property is present, a sibling `currency` property must also be defined.
$.components.schemas[?(@.properties.amount)].properties
error
flutterwave-id-fields-are-strings
All `id` properties must be strings (Flutterwave IDs are opaque strings, not integers).
$.components.schemas[*].properties.id
info
flutterwave-status-uses-enum
Lifecycle `status` properties should be enumerated.
$.components.schemas[?(@.properties.status)].properties.status