Rancher · API Governance Rules
Rancher API Rules
Spectral linting rules defining API design standards and conventions for Rancher.
7 Rules
error 1
warn 4
Rule Categories
rancher
Rules
warn
rancher-operation-ids-camel-case
All operationIds must use camelCase to match the Rancher Management API convention.
$.paths[*][*].operationId
warn
rancher-tags-title-case
All tags must use Title Case.
$.paths[*][*].tags[*]
warn
rancher-bearer-auth-required
All operations should use BearerAuth security scheme.
$.paths[*][*]
hint
rancher-collection-responses
Collection GET endpoints should return a typed collection with 'data' array.
$.paths[*].get.responses.200.content.application/json.schema
hint
rancher-resource-ids-path-params
Resource identifier path parameters should be named 'id'.
$.paths[*][*].parameters[?(@.in == 'path')]
warn
rancher-delete-returns-204
DELETE operations should return 204 No Content.
$.paths[*].delete.responses
error
rancher-no-trailing-slashes
API paths must not end with a trailing slash.
$.paths