Skip to content

Commit 7187d92

Browse files
committed
update readme
1 parent 4bf0cd0 commit 7187d92

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ To use this plugin, just run `protoc` with an option `--pubsub-schema_out`.
2323
`protoc` and `protoc-gen-pubsub-schema` must be found in shell's `$PATH`.
2424

2525
```sh
26+
# generate assembled proto files that accept binary encoding
2627
protoc PROTO_FILES --pubsub-schema_out=OUT_DIR
28+
29+
# generate assembled proto files that accept JSON encoding
30+
protoc PROTO_FILES --pubsub-schema_out=OUT_DIR --pubsub-schema_opt=encoding=json
2731
```
2832

2933
## Example

0 commit comments

Comments
 (0)