ethereum / beacon-APIs

Collection of RESTful APIs provided by Ethereum Beacon nodes
https://ethereum.github.io/beacon-APIs/
Creative Commons Zero v1.0 Universal
335 stars 169 forks source link

Remove generic Hex primitive type #408

Closed nflaig closed 9 months ago

nflaig commented 9 months ago

Motivation

The Beacon api spec currently uses an unspec'd hex type for properties which could use spec'd types instead. Using a spec type allows to enforce stricter validation via pattern and provides better information for consumers of the api spec.

This cleanup also removes some extra diff when deriving types from the consensus spec in the future as proposed in https://github.com/ethereum/beacon-APIs/issues/402.

Description