Closed michaelrosett closed 1 year ago
In fact, this already works. Should probably recommend this syntax over comma separated jsonschema_out paramter.
Glad it works for you. I'll update the docs. All of that option parsing is handled by the protobuf toolkit before it gets to protoc-gen-jsonschema, so it should all be fairly standard stuff.
In order to use bufbuild's
buf generate
command, theplugins.out
field cannot be of the form, for example,enforce_oneof,file_extension=schema.json,disallow_additional_properties:schemas
.You README indicates you don't like this cli syntax and the good news is that protoc plugins should use the
_opt
suffix which would allow you to do something like the following instead. And this would work with bufbuild!