-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
39 lines (37 loc) · 1.29 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
options:
protoc \
--go_out=./pkg/proto \
--go_opt=paths=source_relative \
--doc_out=. \
--doc_opt=markdown,options.md \
./*.proto
generate-examples:
go build -o protoc-gen-jsonschema main.go
protoc \
--plugin=protoc-gen-jsonschema=./protoc-gen-jsonschema \
--jsonschema_out=./ \
--jsonschema_opt=draft=Draft04 \
--jsonschema_opt=output_file_suffix=.draft-04.json \
--plugin=protoc-gen-jsonschema06=./protoc-gen-jsonschema \
--jsonschema06_out=./ \
--jsonschema06_opt=draft=Draft06 \
--jsonschema06_opt=output_file_suffix=.draft-06.json \
--plugin=protoc-gen-jsonschema07=./protoc-gen-jsonschema \
--jsonschema07_out=./ \
--jsonschema07_opt=draft=Draft07 \
--jsonschema07_opt=output_file_suffix=.draft-07.json \
--plugin=protoc-gen-jsonschema19=./protoc-gen-jsonschema \
--jsonschema19_out=./ \
--jsonschema19_opt=draft=Draft201909 \
--jsonschema19_opt=output_file_suffix=.draft-2019-09.json \
--plugin=protoc-gen-jsonschema20=./protoc-gen-jsonschema \
--jsonschema20_out=./ \
--jsonschema20_opt=draft=Draft202012 \
--jsonschema20_opt=output_file_suffix=.draft-2020-12.json \
--plugin=protoc-gen-jsonschemayaml=./protoc-gen-jsonschema \
--jsonschemayaml_out=./ \
--jsonschemayaml_opt=output_file_suffix=.yaml \
-I ./ \
-I ./examples \
./examples/example.proto
rm protoc-gen-jsonschema