mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 07:01:17 +08:00
feat: add buf plugin to generate openapiv2 spec (#2843)
This commit is contained in:
parent
309fab222e
commit
887903b66b
2 changed files with 2116 additions and 0 deletions
2113
api/v2/v2.swagger.yaml
Normal file
2113
api/v2/v2.swagger.yaml
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue