Trellix · API Governance Rules
Trellix API Rules
Spectral linting rules defining API design standards and conventions for Trellix.
9 Rules
error 2
warn 6
info 1
Rule Categories
trellix
Rules
warn
trellix-operation-id-camel-case
Operation IDs must use camelCase
$.paths[*][*].operationId
warn
trellix-summary-title-case
Operation summaries must use Title Case
$.paths[*][*].summary
error
trellix-security-defined
All operations must define security requirements
$.paths[*][get,post,put,patch,delete]
error
trellix-response-200-get
All GET operations must define a 200 response
$.paths[*].get
warn
trellix-response-401-defined
Authenticated operations should define a 401 response
$.paths[*][get,post,put,patch,delete]
warn
trellix-tag-defined
All operations must have at least one tag
$.paths[*][get,post,put,patch,delete]
info
trellix-oauth2-bearer
Trellix APIs use OAuth 2.0 Bearer token authentication
$.components.securitySchemes
warn
trellix-path-kebab-case
API paths should use kebab-case
$.paths[*]~
warn
trellix-post-request-body
POST and PUT operations should define a request body
$.paths[*][post,put]