StoneX · API Governance Rules
StoneX API Rules
Spectral linting rules defining API design standards and conventions for StoneX.
7 Rules
error 3
warn 3
info 1
Rule Categories
stonex
Rules
error
stonex-bearer-auth-required
All StoneX API operations must use Bearer JWT authentication.
$.components.securitySchemes
error
stonex-response-200-or-201-required
All StoneX operations must define a 2xx success response.
$.paths[*][*]
warn
stonex-operationid-camel-case
OperationIds must use camelCase.
$.paths[*][*].operationId
warn
stonex-tags-title-case
All operation tags must use Title Case.
$.paths[*][*].tags[*]
error
stonex-server-https
All StoneX API servers must use HTTPS with TLS 1.3.
$.servers[*].url
info
stonex-iso-currency-description
Currency parameters must reference ISO 4217 in their description to ensure standardized currency code usage.
$.paths[*][*].parameters[?(@.name =~ /currency/i)]
warn
stonex-path-parameters-kebab-case
Path segments (not parameters) should use kebab-case.
$.paths[*]~