Toys R Us · API Governance Rules
Toys R Us API Rules
Spectral linting rules defining API design standards and conventions for Toys R Us.
10 Rules
error 3
warn 6
Rule Categories
toys
Rules
warn
toys-r-us-operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][*].summary
error
toys-r-us-operation-ids-required
All operations must have an operationId.
$.paths[*][*]
warn
toys-r-us-operation-description-required
All operations must have a description.
$.paths[*][*]
warn
toys-r-us-api-key-security
The API must use subscription-key authentication.
$.components.securitySchemes.apiKeyAuth
warn
toys-r-us-tags-required
All operations must be tagged for categorization.
$.paths[*][*]
hint
toys-r-us-pagination-params
GET collection endpoints should support page and pageSize parameters.
$.paths[?([email protected](/{.*}/))][get].parameters
error
toys-r-us-response-200-defined
All operations must define a 200 or 201 success response.
$.paths[*][*].responses
warn
toys-r-us-response-401-defined
All operations should define a 401 unauthorized response.
$.paths[*][*].responses
error
toys-r-us-import-endpoints-use-post
Document import endpoints (*/import) must use POST method.
$.paths[?(@property.match('/import$'))][*]
warn
toys-r-us-error-schema-consistent
Error response schemas should reference the shared Error schema.
$.paths[*][*].responses[401,400,404].content.application/json.schema