Twilio · API Governance Rules
Twilio API Rules
Spectral linting rules defining API design standards and conventions for Twilio.
12 Rules
error 2
warn 8
Rule Categories
twilio
Rules
warn
twilio-summary-prefix
All operation summaries must start with "Twilio "
$.paths[*][get,post,put,patch,delete].summary
warn
twilio-summary-title-case
Operation summaries must use Title Case
$.paths[*][get,post,put,patch,delete].summary
warn
twilio-security-scheme
Operations must reference an accountSid_authToken security scheme
$.security
hint
twilio-json-suffix-paths
Twilio REST API paths should end with .json for list and single resources
$.paths[?([email protected](/\.json$/) && [email protected](/\{[^}]+\}$/))]
warn
twilio-tags-title-case
All tags must use Title Case
$.tags[*].name
warn
twilio-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][get,post,put,patch,delete].operationId
error
twilio-operation-id-required
All operations must have an operationId
$.paths[*][get,post,put,patch,delete]
warn
twilio-operation-description-required
All operations must have a description
$.paths[*][get,post,put,patch,delete]
warn
twilio-operation-tags-required
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
hint
twilio-form-encoded-bodies
POST/PUT request bodies should prefer application/x-www-form-urlencoded
$.paths[*][post,put].requestBody.content
warn
twilio-contact-info
API info must include contact information
$.info
error
twilio-servers-defined
At least one server must be defined
$