western-digital · API Governance Rules
western-digital API Rules
Spectral linting rules defining API design standards and conventions for western-digital.
7 Rules
error 1
warn 6
Rule Categories
wd
Rules
warn
wd-operation-id-kebab-case
Operation IDs must use camelCase.
$.paths.*.*.operationId
warn
wd-path-version-prefix
All paths should include a version prefix (e.g. /v1/, /v2/, /sdk/v2/).
$.paths[*]~
warn
wd-bearer-auth-required
All device-tier paths must declare bearerAuth security.
$.paths[?(!(/authorize|/oauth|/config))].*.security
warn
wd-response-200-content-type
Successful responses should return application/json.
$.paths.*.*.responses.200.content
error
wd-no-trailing-slash
Paths must not have a trailing slash.
$.paths[*]~
warn
wd-tags-defined
Each operation must include at least one tag.
$.paths.*.*.tags
warn
wd-description-required
Each operation must have a description.
$.paths.*.*.description