chore: Add ethermint to swagger (#2002)

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.
This commit is contained in:
Nick DeLuca 2024-08-13 07:34:59 -07:00 committed by GitHub
parent ab3cf7c994
commit 7e50ce8142
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8599 additions and 0 deletions

View File

@ -56,6 +56,7 @@ proto-update-deps: check-rsync ## Update all third party proto files
@mkdir -p client/docs @mkdir -p client/docs
@cp -f $(COSMOS_SDK_PATH)/client/docs/swagger-ui/swagger.yaml client/docs/cosmos-swagger.yml @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 $(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) @mkdir -p $(COSMOS_PROTO_TYPES)
@cp -f $(COSMOS_PROTO_PATH)/proto/cosmos_proto/cosmos.proto $(COSMOS_PROTO_TYPES)/cosmos.proto @cp -f $(COSMOS_PROTO_PATH)/proto/cosmos_proto/cosmos.proto $(COSMOS_PROTO_TYPES)/cosmos.proto

View File

@ -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", "url": "./client/docs/legacy-swagger.yml",
"dereference": { "dereference": {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff