western-union · API Governance Rules
western-union API Rules
Spectral linting rules defining API design standards and conventions for western-union.
8 Rules
error 1
warn 6
info 1
Rule Categories
wu
Rules
warn
wu-operation-id-camel-case
Operation IDs must use camelCase.
$.paths.*.*.operationId
warn
wu-client-id-in-path
All customer-specific paths must include the {clientId} path parameter to scope operations to a specific WU partner account.
$.paths[?(@.startsWith('/customers'))][*]~
warn
wu-response-200-content-type
Successful responses must return application/json.
$.paths.*.*.responses.200.content
warn
wu-tags-defined
Each operation must include at least one tag.
$.paths.*.*.tags
warn
wu-description-required
Each operation must have a description.
$.paths.*.*.description
error
wu-no-trailing-slash
API paths must not have trailing slashes.
$.paths[*]~
info
wu-amount-in-minor-units
Payment amount fields should be described as minor units (e.g., cents) in their schema description.
$.components.schemas.PaymentRequest.properties.amount.description
warn
wu-mtls-security
All operations must use mutualTLS authentication.
$.paths.*.*.security