Walmart · API Governance Rules
Walmart API Rules
Spectral linting rules defining API design standards and conventions for Walmart.
10 Rules
error 4
warn 6
Rule Categories
walmart
Rules
error
walmart-operation-ids-required
All operations must have an operationId
$.paths[*][*]
warn
walmart-operation-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
walmart-operation-tags-required
All operations must have at least one tag
$.paths[*][*]
warn
walmart-required-headers-defined
Walmart APIs require WM_SEC.ACCESS_TOKEN, WM_QOS.CORRELATION_ID, and WM_SVC.NAME headers on all operations
$.paths[*][get,post,put,patch,delete].parameters
warn
walmart-servers-include-sandbox
Walmart APIs should define both production and sandbox server URLs
$.servers
error
walmart-info-description
Info object must have a description
$.info
error
walmart-response-success-defined
Operations must define a successful (2xx) response
$.paths[*][*].responses
warn
walmart-paths-versioned
All paths must be versioned with /v3/ prefix for marketplace APIs
$.paths
warn
walmart-json-content-type
Request bodies should use application/json content type
$.paths[*][post,put,patch].requestBody.content
warn
walmart-response-schema-reference
Successful responses should reference a schema component
$.paths[*][*].responses['200'].content['application/json']