chore: update protoc-gen-swagger to protoc-gen-openapiv2 (#20448)

This commit is contained in:
Paul Chen
2024-05-31 09:58:58 +00:00
committed by GitHub
parent 8364791eb3
commit 6967fbd11e
8 changed files with 6693 additions and 10048 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ set -eo pipefail
mkdir -p ./tmp-swagger-gen
cd proto
proto_dirs=$(find ./cosmos -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
proto_dirs=$(find ./cosmos ../x -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
for dir in $proto_dirs; do
# generate swagger files (filter query files)
query_file=$(find "${dir}" -maxdepth 1 \( -name 'query.proto' -o -name 'service.proto' \))