Skip to content

Commit

Permalink
fix: swagger docs & swagger generation #2233 (#2271)
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-Felix authored Aug 3, 2022
1 parent d0aaca0 commit 1592bb8
Show file tree
Hide file tree
Showing 9 changed files with 56,579 additions and 33,971 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ docs:
@echo
@echo "=========== Generate Complete ============"
@echo
.PHONY: docs

protoVer=v0.7
protoImageName=tendermintdev/sdk-proto-gen:$(protoVer)
Expand Down
100 changes: 62 additions & 38 deletions client/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@
},
"apis": [
{
"url": "../../tmp-swagger-gen/osmosis/gamm/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/osmosis/epochs/query.swagger.json",
"operationIds": {
"rename": {
"Params": "GAMMParams"
"Params": "EpochsParams"
}
}
},
{
"url": "../../tmp-swagger-gen/osmosis/epochs/query.swagger.json",
"url": "../../tmp-swagger-gen/osmosis/gamm/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "EpochsParams"
"Params": "GAMMParams"
}
}
},
{
"url": "../../tmp-swagger-gen/osmosis/pool-incentives/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/osmosis/incentives/query.swagger.json",
"operationIds": {
"rename": {
"Params": "PoolIncentivesParams"
"Params": "IncentivesParams"
}
}
},
Expand All @@ -39,26 +39,44 @@
}
},
{
"url": "../../tmp-swagger-gen/osmosis/incentives/query.swagger.json",
"url": "../../tmp-swagger-gen/osmosis/mint/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IncentivesParams"
"Params": "MintParams"
}
}
},
{
"url": "../../tmp-swagger-gen/osmosis/pool-incentives/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"LockableDurations": "PoolLockableDurations",
"Params": "PoolIncentivesParams"
}
}
},
{
"url": "../../tmp-swagger-gen/osmosis/claim/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/osmosis/superfluid/query.swagger.json",
"operationIds": {
"rename": {
"Params": "ClaimParams"
"Params": "SuperfluidParams"
}
}
},
{
"url": "../../tmp-swagger-gen/osmosis/mint/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/osmosis/tokenfactory/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "MintParams"
"Params": "TokenfactoryParams"
}
}
},
{
"url": "../../tmp-swagger-gen/osmosis/txfees/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "TxFeesParams",
"BaseDenom": "TxFeesBaseDenom"
}
}
},
Expand All @@ -71,100 +89,106 @@
}
},
{
"url": "../../tmp-swagger-gen/cosmos/bank/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/authz/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "BankParams"
"Params": "AuthzParams"
}
}
},
{
"url": "../../tmp-swagger-gen/cosmos/distribution/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/bank/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "DistributionParams"
"Params": "BankParams"
}
}
},
{
"url": "../../tmp-swagger-gen/cosmos/evidence/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/base/tendermint/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "EvidenceParams"
"Params": "BaseParams"
}
}
},
{
"url": "../../tmp-swagger-gen/cosmos/gov/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/distribution/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "GovParams"
"Params": "DistributionParams"
}
}
},
{
"url": "../../tmp-swagger-gen/cosmos/params/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/evidence/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "Params"
"Params": "EvidenceParams"
}
}
},
{
"url": "../../tmp-swagger-gen/cosmos/slashing/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/feegrant/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "SlashingParams"
"Params": "FeegrantParams"
}
}
},
{
"url": "../../tmp-swagger-gen/cosmos/staking/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/gov/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "StakingParams",
"Pool": "StakingPool",
"DelegatorValidators": "StakingDelegatorValidators"
"Params": "GovParams"
}
}
},
{
"url": "../../tmp-swagger-gen/cosmos/upgrade/v1beta1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/mint/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "UpgradeParams"
"Params": "CosmosMintParams"
}
}
},
{
"url": "../../tmp-swagger-gen/ibc/core/channel/v1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/params/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IBCChannelParams"
"Params": "Params"
}
}
},
{
"url": "../../tmp-swagger-gen/ibc/core/client/v1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/slashing/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IBCClientParams"
"Params": "SlashingParams"
}
}
},
{
"url": "../../tmp-swagger-gen/ibc/core/connection/v1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/staking/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IBCConnectionParams"
"Params": "StakingParams",
"Pool": "StakingPool",
"DelegatorValidators": "StakingDelegatorValidators"
}
}
},
{
"url": "../../tmp-swagger-gen/ibc/applications/transfer/v1/query.swagger.json",
"url": "../../tmp-swagger-gen/cosmos/tx/v1beta1/service.swagger.json",
"dereference": {
"circular": "ignore"
}
},
{
"url": "../../tmp-swagger-gen/cosmos/upgrade/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "IBCTransferParams"
"Params": "UpgradeParams"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"dependencies": {
"redoc-cli": "^0.9.12",
"swagger-combine": "^1.3.0",
"swagger-combine": "^1.4.0",
"swagger2openapi": "^7.0.3"
}
}
720 changes: 460 additions & 260 deletions client/docs/static/openapi/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit 1592bb8

Please sign in to comment.