Dependency-Track · API Governance Rules
Dependency-Track API Rules
Spectral linting rules defining API design standards and conventions for Dependency-Track.
13 Rules
error 13
Authorship not recorded
No authorship marker is recorded for this file. It is not presented as the provider's; it was most likely written by an API Evangelist pass before outputs were stamped.
Rule Categories
must
operation
paginated
response
Rules
error
operation-must-have-exactly-one-tag
$.paths.*[get,post,put,patch,delete].tags
error
must-use-snake-case-for-path-parameters
$.paths.*.*.parameters[?(@ && @.in=='path')].name
error
paginated-response-must-use-items-array
$.paths.*.get.responses.*.content.application/json.schema
error
operation-id-get-prefix
$.paths.*.get.operationId
error
operation-id-post-prefix
$.paths.*.post.operationId
error
operation-id-put-prefix
$.paths.*.put.operationId
error
operation-id-patch-prefix
$.paths.*.patch.operationId
error
operation-id-delete-prefix
$.paths.*.delete.operationId
error
response-conventions-post
$.paths[?(!@property.match(/(\/test|^\/oauth\/token)$/))].post.responses
error
response-conventions-put
$.paths.*.put.responses
error
response-conventions-patch
$.paths.*.patch.responses
error
response-conventions-delete
$.paths.*.delete.responses
error
must-use-problem-json-for-errors
MUST support problem JSON [176]
$.paths[?(!@property.match(/^\/oauth\/token$/))].*.responses[?(@ && @property.match(/^(4|5)/))]
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.