I want to generate our protobuf documentation in camelCase rather than snake_case.
It seems to come down to the plugin trying to use protoc-gen-docs rather than protoc-gen-doc in the docker image. I'm a bit confused about the relationship between the two packages, but protoc-gen-docs allows the --docs_out=camel_case_fields=true:output_directory field https://pkg.go.dev/istio.io/tools/cmd/protoc-gen-docs#section-readme.
I get the error protoc-gen-docs: program not found or is not executable.
I suspect that the doc_opt parameter should be able to extract this option, but it's not currently viable - it just writes an additional file camel_case_fields=true with the generated documentation.
I want to generate our protobuf documentation in camelCase rather than snake_case.
It seems to come down to the plugin trying to use
protoc-gen-docs
rather thanprotoc-gen-doc
in the docker image. I'm a bit confused about the relationship between the two packages, butprotoc-gen-docs
allows the--docs_out=camel_case_fields=true:output_directory
field https://pkg.go.dev/istio.io/tools/cmd/protoc-gen-docs#section-readme.Using the docker image, I'm able to use:
However, when I try to run
I get the error
protoc-gen-docs: program not found or is not executable
.I suspect that the
doc_opt
parameter should be able to extract this option, but it's not currently viable - it just writes an additional filecamel_case_fields=true
with the generated documentation.