node icon indicating copy to clipboard operation
node copied to clipboard

OpenAPI YAML is not served in full

Open fadeev opened this issue 2 years ago • 5 comments

For example, https://rpc-archive.athens.zetachain.com:1317/openapi.swagger.yaml is 32K lines long, but the YAML in the source is 56K lines long.

fadeev avatar Jun 21 '23 16:06 fadeev

It's not an issue when running with go run docs/main.go. It's also not a problem when running locally with zetacored start --api.enable.

fadeev avatar Jun 21 '23 16:06 fadeev

@CharlieMc0 do you know why a server would refuse to send the whole file?

fadeev avatar Jun 21 '23 16:06 fadeev

@fadeev if i run curl:

curl  https://rpc-archive.athens.zetachain.com:1317/openapi.swagger.yaml

it seems to fetch around 2MB!?

brewmaster012 avatar Jun 21 '23 17:06 brewmaster012

@fadeev if i run curl:

curl  https://rpc-archive.athens.zetachain.com:1317/openapi.swagger.yaml

it seems to fetch around 2MB!?

Yes, but it's still 32K lines and should be 56K lines. So it's not the whole file.

fadeev avatar Jun 21 '23 17:06 fadeev

/cosmos/evm/feemarket/v1/params is missed from the swagger docs and not supported by some public RPC providers like BlockPi and ATN.

example - https://zetachain-testnet-api.itrocket.net/cosmos/evm/feemarket/v1/params

CharlieMc0 avatar Sep 10 '25 23:09 CharlieMc0