Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove generic Hex primitive type #408

Merged
merged 7 commits into from
Jan 15, 2024
Merged

Conversation

nflaig
Copy link
Collaborator

@nflaig nflaig commented Jan 11, 2024

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 #402.

Description

  • removes generic Hex primitive type
  • update properties that referenced it with more specific type
  • update some example values
  • stricter pattern for Bitlist and Bitvector

dapplion
dapplion previously approved these changes Jan 12, 2024
Copy link
Collaborator

@rolfyone rolfyone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rolfyone rolfyone merged commit 1449e7d into ethereum:master Jan 15, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants