Synnex · API Governance Rules
Synnex API Rules
Spectral linting rules defining API design standards and conventions for Synnex.
11 Rules
error 4
warn 6
info 1
Rule Categories
account
list
oauth
operation
path
paths
response
Rules
error
operation-operationId
All operations must have an operationId.
$.paths[*][get,post,put,patch,delete]
error
operation-summary
All operations must have a summary.
$.paths[*][get,post,put,patch,delete]
warn
operation-summary-title-case
Operation summaries must use Title Case.
$.paths[*][get,post,put,patch,delete].summary
warn
operation-tags
All operations must have at least one tag.
$.paths[*][get,post,put,patch,delete]
warn
operation-description
All operations should have a description.
$.paths[*][get,post,put,patch,delete]
error
path-param-documented
All path parameters must have a description.
$.paths[*][*].parameters[?(@.in == 'path')]
info
account-id-required
Resource endpoints should include accountId path parameter.
$.paths['/accounts/{accountId}/*']
warn
list-pagination
List operations (GET returning arrays) should support pagination parameters.
$.paths[*].get.parameters
error
oauth-security
All operations must use OAuth 2.0 bearer token authentication.
$.components.securitySchemes
warn
response-body-schema
Successful responses must include a response body schema.
$.paths[*][*].responses['200','201'].content['application/json']
warn
paths-kebab-case
Path segments must use kebab-case.
$.paths