Stack Exchange · API Governance Rules
Stack Exchange API Rules
Spectral linting rules defining API design standards and conventions for Stack Exchange.
9 Rules
error 2
warn 5
info 2
Rule Categories
stack
Rules
warn
stack-exchange-operation-summaries-title-case
All Stack Exchange API operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
stack-exchange-site-parameter-required
Stack Exchange API endpoints must require the site query parameter
$.paths[*][get,post,put,patch,delete].parameters[*]
warn
stack-exchange-operationid-camel-case
Stack Exchange API operationIds must use camelCase
$.paths[*][get,post,put,patch,delete].operationId
error
stack-exchange-operations-must-have-operationid
All Stack Exchange API operations must have an operationId
$.paths[*][get,post,put,patch,delete]
info
stack-exchange-semicolon-ids-in-path
Stack Exchange API path parameters for IDs use semicolon-delimited format
$.paths[*]~
info
stack-exchange-wrapper-response
Stack Exchange API responses should use the wrapper envelope format
$.paths[*][get,post,put,patch,delete].responses.200.content.application/json.schema
warn
stack-exchange-pagination-parameters
Stack Exchange list operations should support page and pagesize parameters
$.paths[*].get.parameters[*]
error
stack-exchange-oauth2-defined
Stack Exchange API must define OAuth 2.0 security scheme
$.components.securitySchemes
warn
stack-exchange-tags-defined
All tags referenced in operations must be defined at document level
$.paths[*][get,post,put,patch,delete].tags