Shopify Admin API · API Governance Rules
Shopify Admin API API Rules
Spectral linting rules defining API design standards and conventions for Shopify Admin API.
9 Rules
error 3
warn 5
info 1
Rule Categories
shopify
Rules
warn
shopify-admin-path-version
Shopify Admin REST API paths must include the API version in the server URL, not the path
$.paths[*]~
info
shopify-admin-json-suffix
Shopify Admin REST API paths typically end with .json
$.paths[*]~
warn
shopify-admin-resource-naming
Shopify Admin REST API resource names should use plural snake_case
$.paths[*]~
error
shopify-admin-access-token-required
Shopify Admin REST API requires X-Shopify-Access-Token authentication
$.components.securitySchemes
error
shopify-admin-operation-ids
All Shopify Admin API operations must have unique operationIds
$.paths[*][get,post,put,delete,patch]
error
shopify-admin-response-200
GET operations must have a 200 response defined
$.paths[*].get
warn
shopify-admin-tag-defined
All operations must have at least one tag for grouping
$.paths[*][get,post,put,delete,patch]
warn
shopify-admin-path-parameter-names
Path parameters should use snake_case naming (e.g., product_id, customer_id)
$.paths[*].parameters[?(@.in == 'path')].name
warn
shopify-admin-no-trailing-slash
Shopify Admin API paths must not have trailing slashes
$.paths[*]~