feat: add buf plugin to generate openapiv2 spec (#2843)

This commit is contained in:
Lincoln Nogueira 2024-01-27 19:16:37 -03:00 committed by GitHub
parent 309fab222e
commit 887903b66b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2116 additions and 0 deletions

2113
api/v2/v2.swagger.yaml Normal file

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,9 @@ plugins:
out: gen
opt:
- paths=source_relative
- plugin: buf.build/grpc-ecosystem/openapiv2:v2.19.0
out: ../api/v2/
opt: output_format=yaml,allow_merge=true,merge_file_name=v2
# Build the TypeScript definitions for the web.
- plugin: buf.build/community/stephenh-ts-proto:v1.152.1
out: ../web/src/types/proto