VMware Tanzu · API Governance Rules
VMware Tanzu API Rules
Spectral linting rules defining API design standards and conventions for VMware Tanzu.
8 Rules
error 2
warn 6
Rule Categories
tanzu
Rules
warn
tanzu-operation-ids-camel-case
Operation IDs must use camelCase to match Tanzu SDK conventions.
$.paths[*][*].operationId
error
tanzu-require-auth
All Tanzu API operations must define security.
$.paths[*][*]
error
tanzu-require-summaries
All operations must have a summary.
$.paths[*][*]
warn
tanzu-require-descriptions
All operations and schemas must have descriptions.
$.paths[*][*]$.components.schemas[*]
warn
tanzu-require-401-response
All authenticated operations must define a 401 Unauthorized response.
$.paths[*][get,post,put,patch,delete]
warn
tanzu-path-params-documented
All path parameters must have descriptions.
$.paths[*][*].parameters[?(@.in == 'path')]
warn
tanzu-versioned-paths
All Tanzu API paths must include an API version segment.
$.paths
warn
tanzu-schemas-have-types
All schema properties must have explicit types.
$.components.schemas[*].properties[*]