Todoist · API Governance Rules
Todoist API Rules
Spectral linting rules defining API design standards and conventions for Todoist.
10 Rules
error 4
warn 6
Rule Categories
todoist
Rules
warn
todoist-post-for-updates
Todoist uses POST for update operations, not PUT/PATCH
$.paths.*.put
warn
todoist-operation-id-camelcase
OperationIds must use camelCase format
$.paths[*][*].operationId
warn
todoist-path-kebab-case
Path segments must use kebab-case
$.paths[*]~
error
todoist-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
todoist-tags-required
All operations must be tagged
$.paths[*][get,post,put,patch,delete]
error
todoist-summary-required
All operations must have a summary
$.paths[*][get,post,put,patch,delete]
warn
todoist-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
error
todoist-auth-bearer
API must use Bearer token authentication
$.components.securitySchemes
warn
todoist-success-response
Operations must define a success response
$.paths[*][get,post,put,patch,delete].responses
error
todoist-path-params-defined
Path parameters must be defined in operation parameters
$.paths[*][get,post,put,patch,delete].parameters[?(@.in == 'path')]