Twitch · API Governance Rules
Twitch API Rules
Spectral linting rules defining API design standards and conventions for Twitch.
10 Rules
error 2
warn 4
Rule Categories
twitch
Rules
warn
twitch-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
hint
twitch-summary-provider-prefix
Operation summaries should be prefixed with the API product name (e.g. "Twitch")
$.paths[*][*].summary
hint
twitch-requires-client-id-parameter
Twitch operations should reference the clientId parameter
$.paths[*][get,post,patch,put,delete].parameters[*]
warn
twitch-security-defined
All operations should declare security requirements
$.paths[*][get,post,patch,put,delete]
error
twitch-no-basic-auth
Twitch does not use HTTP Basic authentication
$.components.securitySchemes[*]
warn
twitch-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
twitch-tags-title-case
Tags must use Title Case
$.tags[*].name
error
twitch-success-response-defined
Operations must define a success response
$.paths[*][get,post,patch,put,delete].responses
hint
twitch-paths-kebab-case
Path segments must use snake_case or kebab-case (Twitch uses snake_case)
$.paths
hint
twitch-pagination-first-parameter
Collection GET endpoints should support pagination via 'first' and 'after' parameters
$.paths[*][get]