ChainSafe / lodestar

🌟 TypeScript Implementation of Ethereum Consensus
https://lodestar.chainsafe.io
Apache License 2.0
1.14k stars 282 forks source link

Enriched API schema #5973

Open wemeetagain opened 1 year ago

wemeetagain commented 1 year ago

Enriched schema would definitely be nice to have, especially for POST requests. I think we would have to pull a pinned version of the beacon-API schema from github and then override each route based on operationId. This will become especially important if we want to generate a API docs page with redoc (or similar tooling).

_Originally posted by @nflaig in https://github.com/ChainSafe/lodestar/pull/5970#discussion_r1331249862_

wemeetagain commented 1 year ago

One annoying thing is that this will blow up our bundle size. Current unpacked package size is 424K, the schema is 691K