Shopper Approved · API Governance Rules
Shopper Approved API Rules
Spectral linting rules defining API design standards and conventions for Shopper Approved.
7 Rules
error 3
warn 4
Rule Categories
shopper
Rules
warn
shopper-approved-site-id-path
Shopper Approved API uses site_id as a path parameter in all endpoints
$.paths[*]~
warn
shopper-approved-token-query-param
Shopper Approved API requires token as a query parameter
$.paths[*][get,post,put].parameters[?(@.in == 'query' && @.name == 'token')]
error
shopper-approved-operation-ids
All Shopper Approved API operations must have operationIds
$.paths[*][get,post,put,delete,patch]
warn
shopper-approved-tag-required
All operations must be tagged for grouping
$.paths[*][get,post,put,delete,patch]
error
shopper-approved-response-200
GET operations must define a 200 response
$.paths[*].get
warn
shopper-approved-rating-schema
Review rating should be constrained to 1-5 range
$.components.schemas.Review.properties.rating
error
shopper-approved-https-server
Shopper Approved API should use HTTPS
$.servers[*].url