Shopify · API Governance Rules
Shopify API Rules
Spectral linting rules defining API design standards and conventions for Shopify.
13 Rules
error 4
warn 5
info 4
Rule Categories
shopify
Rules
warn
shopify-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][get,post,put,patch,delete].operationId
info
shopify-path-kebab-case
Path segments must use kebab-case or curly-brace parameters (Shopify uses .json suffix)
$.paths
info
shopify-path-json-suffix
Shopify Admin REST API paths use .json suffix for resource endpoints
$.paths
error
shopify-must-have-summary
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
shopify-must-have-tags
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
error
shopify-must-have-operation-id
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
error
shopify-get-must-return-200
GET operations must return 200 response
$.paths[*].get
info
shopify-access-token-auth
Shopify Admin REST API uses X-Shopify-Access-Token header authentication
$.components.securitySchemes[*]
error
shopify-no-trailing-slash
Paths must not have trailing slashes
$.paths
warn
shopify-versioned-api-url
Shopify Admin API servers must include version date in URL
$.servers[*].url
warn
shopify-response-200-must-have-content
200 responses must have content defined
$.paths[*][get,post,put,patch,delete].responses[200]
warn
shopify-tags-title-case
All tags must use Title Case
$.tags[*].name
info
shopify-rate-limit-awareness
Shopify API has rate limits (40 req/min REST, 2 req/sec Burst) - document in description
$.info.description