Coupa · API Governance Rules
Coupa API Rules
Spectral linting rules defining API design standards and conventions for Coupa.
13 Rules
error 6
warn 6
info 1
Rule Categories
coupa
Rules
error
coupa-info-contact
API info object should include contact information.
$.info
warn
coupa-info-license
API info object should include license information.
$.info
error
coupa-server-https
All servers must use HTTPS.
$.servers[*].url
warn
coupa-base-url
Servers should reference the Coupa instance host.
$.servers[*].url
error
coupa-required-auth
Operations should be protected by OAuth 2.0 or API key.
$.security
error
coupa-operation-tags
Every operation must have at least one tag.
$.paths.*[get,post,put,delete,patch]
error
coupa-operation-summary
Every operation must have a summary.
$.paths.*[get,post,put,delete,patch]
warn
coupa-operation-description
Operations should include a description.
$.paths.*[get,post,put,delete,patch]
warn
coupa-summary-prefix
Every operation summary should be prefixed with "Coupa".
$.paths.*[get,post,put,delete,patch].summary
error
coupa-operation-id
Every operation must have an operationId.
$.paths.*[get,post,put,delete,patch]
warn
coupa-resource-naming
Path segments should use snake_case to match Coupa resource naming.
$.paths
warn
coupa-error-responses
Operations should declare 401 and 404 error responses.
$.paths.*[get,put,delete,patch]
info
coupa-pagination-params
List operations should support offset and limit query parameters.
$.paths[?(@property.match(/.*s$/))][get].parameters