CubeFS · API Governance Rules
CubeFS API Rules
Spectral linting rules defining API design standards and conventions for CubeFS.
6 Rules
error 1
warn 5
Rule Categories
cubefs
Rules
warn
cubefs-info-contact
CubeFS API specs must declare a contact.
$.info
error
cubefs-server-defined
CubeFS specs must declare at least one server.
$.servers
warn
cubefs-master-volume-paths
Volume admin endpoints should be under /admin or /vol prefix.
$.paths
warn
cubefs-tag-required
Operations must declare a tag.
$.paths[*][get,post,put,delete]
warn
cubefs-operation-id-camel
Operation IDs should be camelCase.
$.paths[*][get,post,put,delete].operationId
warn
cubefs-cluster-admin-name-required
Volume create/update operations must require a vol name parameter.
$.paths[?(@property.match(/admin\/(createVol|getVol)|vol\/(update|delete|expand)/))][post,get,delete].parameters[*].name