TensorDock · API Governance Rules
TensorDock API Rules
Spectral linting rules defining API design standards and conventions for TensorDock.
8 Rules
error 3
warn 5
Rule Categories
tensordock
Rules
warn
tensordock-operation-summary-title-case
TensorDock operation summaries should use Title Case.
$.paths[*][get,post,put,delete,patch].summary
error
tensordock-operation-id-camel-case
TensorDock operationIds must use lowerCamelCase.
$.paths[*][get,post,put,delete,patch].operationId
error
tensordock-tags-present
Every operation should have at least one tag.
$.paths[*][get,post,put,delete,patch]
warn
tensordock-paths-lower-kebab
TensorDock paths use lowercase segments and kebab-case for compound names.
$.paths.~
warn
tensordock-api-key-pair-security
Marketplace v0 endpoints must reference the ApiKeyPair security scheme.
$.paths[/api/v0/*].*
warn
tensordock-bearer-security-v2
v2 endpoints must reference the BearerAuth security scheme.
$.paths[/api/v2/*].*
error
tensordock-success-response
Every operation must define a 2xx response.
$.paths[*][get,post,put,delete,patch].responses
warn
tensordock-info-contact
TensorDock specs should set a contact email.
$.info.contact