Skip to content

Commit

Permalink
chore: Add ethermint to swagger (#2002)
Browse files Browse the repository at this point in the history
This adds the upstream ethermint swagger file to the proto-deps and adds
the swagger combine config to include it in the kava generated swagger.

Run `make proto-all` to update.
  • Loading branch information
nddeluca authored Aug 13, 2024
1 parent ab3cf7c commit 7e50ce8
Show file tree
Hide file tree
Showing 4 changed files with 8,599 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/proto-deps.mk
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ proto-update-deps: check-rsync ## Update all third party proto files
@mkdir -p client/docs
@cp -f $(COSMOS_SDK_PATH)/client/docs/swagger-ui/swagger.yaml client/docs/cosmos-swagger.yml
@cp -f $(IBC_GO_PATH)/docs/client/swagger-ui/swagger.yaml client/docs/ibc-go-swagger.yml
@cp -f $(ETHERMINT_PATH)/client/docs/swagger-ui/swagger.yaml client/docs/ethermint-swagger.yml

@mkdir -p $(COSMOS_PROTO_TYPES)
@cp -f $(COSMOS_PROTO_PATH)/proto/cosmos_proto/cosmos.proto $(COSMOS_PROTO_TYPES)/cosmos.proto
Expand Down
24 changes: 24 additions & 0 deletions client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,30 @@
]
}
},
{
"url": "./client/docs/ethermint-swagger.yml",
"dereference": {
"circular": "ignore"
},
"tags": {
"rename": {
"Query": "Ethermint"
}
},
"operationIds": {
"rename": [
{
"type": "regex",
"from": "(.*)",
"to": "Ethermint$1"
}
]
},
"paths": {
"exclude": [
]
}
},
{
"url": "./client/docs/legacy-swagger.yml",
"dereference": {
Expand Down
Loading

0 comments on commit 7e50ce8

Please sign in to comment.