Tech Data · API Governance Rules
Tech Data API Rules
Spectral linting rules defining API design standards and conventions for Tech Data.
11 Rules
error 4
warn 7
Rule Categories
td
Rules
warn
td-synnex-account-id-required
All resource paths must include accountId path parameter
$.paths[?(@property =~ /\/v3\/accounts\//)].get.parameters[?(@.name == 'accountId')]
warn
td-synnex-operationid-kebab-case
Operation IDs should be camelCase (StreamOne convention)
$.paths.*.*.operationId
error
td-synnex-versioned-paths
All API paths must include a version prefix (v3)
$.paths
warn
td-synnex-pagination-list-operations
List operations should support page and pageSize query parameters
$.paths[?(@property =~ /(?
error
td-synnex-response-200-required
Successful GET operations must have a 200 response
$.paths.*.get
warn
td-synnex-response-201-for-post
POST create operations should return 201 Created
$.paths.*.post
error
td-synnex-bearer-security-defined
Security scheme must be BearerAuth (OAuth2 token)
$.components.securitySchemes
warn
td-synnex-error-schema
Error responses must use the Error schema
$.paths.*.*.responses[?(@property >= '400')].content.application/json.schema
error
td-synnex-tags-required
All operations must have tags for grouping
$.paths.*.*
warn
td-synnex-description-required
All operations must have descriptions
$.paths.*.*
warn
td-synnex-schemas-have-properties
Schema objects should define properties
$.components.schemas[?(@.type == 'object')]