Lean Technologies · API Governance Rules
Lean Technologies API Rules
Spectral linting rules defining API design standards and conventions for Lean Technologies.
6 Rules
error 2
warn 4
Rule Categories
mutating
operation
path
security
servers
Rules
warn
operation-summary-title-case
All operation summaries should use Title Case starting with the "Lean" prefix.
$.paths[*][get,post,put,delete,patch].summary
error
operation-operationId-camelCase
operationId should be lowerCamelCase.
$.paths[*][get,post,put,delete,patch].operationId
warn
path-versioned-plural
Lean paths are versioned (v1 / v2) and use plural resource names where applicable.
$.paths
warn
mutating-operations-require-idempotency
POST/PUT/DELETE on payments, payouts, and refunds should accept an idempotency key.
$.paths[?(@property.match(/payments|payouts|refunds/))][post,put,delete].parameters
warn
security-bearer-required
All non-auth endpoints should require BearerAuth.
$.paths[?([email protected](/oauth2/))][get,post,put,delete,patch]
error
servers-must-be-lean
Server URLs must be canonical Lean endpoints.
$.servers[*].url