Thoughtly · API Governance Rules
Thoughtly API Rules
Spectral linting rules defining API design standards and conventions for Thoughtly.
6 Rules
error 1
warn 4
Rule Categories
thoughtly
Rules
error
thoughtly-server-url
All Thoughtly API specs must declare the canonical production server.
$.servers[*].url
warn
thoughtly-require-api-token-security
Every operation must require the ApiKeyAuth (x-api-token) security scheme except public webhook trigger endpoints.
$.paths.*[?(@.operationId)]
warn
thoughtly-summary-title-case
Operation summaries should use Title Case (the API Evangelist convention).
$.paths.*[?(@.summary)].summary
hint
thoughtly-generic-response-schema
2xx JSON responses should reference the GenericResponse schema.
$.paths.*.*.responses.200.content.application/json.schema
warn
thoughtly-tag-known
Operations should be tagged with one of the documented tag categories.
$.paths.*.*.tags[*]
warn
thoughtly-operation-id
Every operation must declare a camelCase operationId.
$.paths.*[?(@.summary)]