Red Hat 3scale · API Governance Rules
Red Hat 3scale API Rules
Spectral linting rules defining API design standards and conventions for Red Hat 3scale.
12 Rules
error 3
warn 7
info 2
Rule Categories
3scale
Rules
error
3scale-access-token-required
3scale Account Management API endpoints require an access_token query parameter for authentication. All endpoints on the admin domain must include this parameter.
$.paths[*][get,post,put,delete,patch].parameters[*]
warn
3scale-json-responses
3scale management endpoints should return application/json content type for consistency with REST API conventions.
$.paths[*][get,post,put,patch].responses[200,201].content
error
3scale-operation-id-required
All operations must have an operationId to support SDK code generation and documentation linking.
$.paths[*][get,post,put,delete,patch]
warn
3scale-operation-id-camel-case
3scale API operation IDs must use camelCase naming convention (e.g., listAccounts, createApplication).
$.paths[*][get,post,put,delete,patch].operationId
warn
3scale-summary-title-case
Operation summaries must use Title Case formatting to match the 3scale documentation style.
$.paths[*][get,post,put,delete,patch].summary
warn
3scale-tags-defined
All operation tags must reference tags defined in the global tags array for consistency.
$.paths[*][get,post,put,delete,patch].tags[*]
warn
3scale-operation-description-required
All operations must include a description explaining what the endpoint does, required parameters, and expected behavior.
$.paths[*][get,post,put,delete,patch]
error
3scale-api-versioned
API info must include a version number following semantic versioning conventions.
$.info
warn
3scale-parameter-descriptions
All parameters must include a description to help API consumers understand what values to provide.
$.paths[*][get,post,put,delete,patch].parameters[*]
info
3scale-schema-property-descriptions
Schema properties in response bodies should include descriptions to document the meaning of each field.
$.components.schemas[*].properties[*]
warn
3scale-not-found-response
Endpoints with path parameters should include a 404 response to handle the case where the specified resource does not exist.
$.paths[*~@contains('{')][get,put,delete]
info
3scale-pagination-parameters
List endpoints should support pagination via page and per_page parameters to control result set size.
$.paths[[email protected]('.json')][get]