Paymob · API Governance Rules
Paymob API Rules
Spectral linting rules defining API design standards and conventions for Paymob.
8 Rules
error 5
warn 3
Rule Categories
paymob
Rules
error
paymob-operation-id-camel-case
Operation IDs must be camelCase to match Paymob's documented conventions.
$.paths[*][*].operationId
warn
paymob-summary-title-case
Operation summaries must use Title Case per API Evangelist convention.
$.paths[*][*].summary
error
paymob-tags-required
Every operation must have at least one tag.
$.paths[*][*]
error
paymob-secure-base-uri
All Paymob base URIs must use HTTPS.
$.servers[*].url
warn
paymob-amount-units-documented
Schemas exposing monetary amount fields must document the unit (cents/minor units).
$.components.schemas[?(@.properties)].properties[?(@property === 'amount_cents' || @property === 'amount')]
warn
paymob-currency-enum
Currency fields should be ISO 4217 strings constrained to supported markets.
$.components.schemas..properties.currency
error
paymob-no-pii-in-paths
Path segments must not contain raw PII like email or phone.
$.paths
error
paymob-bearer-or-token-auth
At least one path must declare bearer or API key security.
$.components.securitySchemes