Thought Industries · API Governance Rules
Thought Industries API Rules
Spectral linting rules defining API design standards and conventions for Thought Industries.
8 Rules
error 3
warn 5
Rule Categories
thought
Rules
warn
thought-industries-operation-summary-title-case
All operation summaries must use Title Case.
$.paths[*][*].summary
warn
thought-industries-pagination-params
List operations should support page and per_page parameters.
$.paths[*][get]
error
thought-industries-auth-header-documented
API key authentication must be documented via X-API-Key header or apiKey query.
$.components.securitySchemes
error
thought-industries-request-body-json
POST/PUT operations must use application/json content type.
$.paths[*][post,put].requestBody.content
warn
thought-industries-response-data-wrapper
Successful responses should wrap data in a data property.
$.paths[*][*].responses.200.content.application/json.schema.properties
error
thought-industries-tag-defined
All operations must have at least one tag.
$.paths[*][get,post,put,delete]
warn
thought-industries-path-resource-plural
Collection paths should use plural resource names.
$.paths
warn
thought-industries-operation-id-camel-case
Operation IDs must use camelCase.
$.paths[*][*].operationId