Bazel · API Governance Rules
Bazel API Rules
Spectral linting rules defining API design standards and conventions for Bazel.
6 Rules
error 1
warn 5
Rule Categories
bcr
module
operation
tags
Rules
warn
operation-summary-title-case
Operation summaries should use Title Case.
$.paths.*[get,put,post,delete,options,head,patch,trace].summary
warn
operation-operationid-camelcase
operationId should use lowerCamelCase.
$.paths.*[get,put,post,delete,options,head,patch,trace].operationId
warn
bcr-server-required
BCR-style index registries must declare https://bcr.bazel.build or a compatible registry root as a server.
$.servers[*].url
error
bcr-modules-path-shape
Module-scoped paths must follow /modules/{module}/... shape per the Bazel index-registry protocol.
$.paths
warn
module-name-pattern
Module name parameter must be lowercase snake_case to match Bzlmod module naming.
$.components.parameters.Module.schema.pattern
warn
tags-title-case
Tags must use Title Case.
$.tags[*].name