Stack Overflow · API Governance Rules
Stack Overflow API Rules
Spectral linting rules defining API design standards and conventions for Stack Overflow.
9 Rules
error 3
warn 6
Rule Categories
stack
Rules
warn
stack-overflow-operation-summaries-title-case
All Stack Overflow API operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
stack-overflow-operationid-camel-case
Stack Overflow API operationIds must use camelCase
$.paths[*][get,post,put,patch,delete].operationId
error
stack-overflow-operations-must-have-operationid
All Stack Overflow API operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
stack-overflow-pagination-supported
List operations should support page and pagesize parameters
$.paths[*].get.parameters[*]
warn
stack-overflow-wrapper-response-schema
Stack Overflow list responses must use the wrapper format with items
$.components.schemas[*]
error
stack-overflow-teams-bearer-auth
Stack Overflow for Teams API must use bearer token authentication
$.components.securitySchemes
warn
stack-overflow-teams-path-includes-team
Stack Overflow for Teams paths must include team parameter
$.paths[*]~
warn
stack-overflow-response-error-schemas
Error responses must reference ErrorResponse schema
$.paths[*][get,post,put,patch,delete].responses[4*].content.application/json.schema
error
stack-overflow-post-requires-body
POST and PUT operations must have request bodies
$.paths[*][post,put]