Skip to content

WIP: Implement validator for CBOR #68

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

Draft
wants to merge 15 commits into
base: js/numeric-data
Choose a base branch
from
Draft

Conversation

jasagredo
Copy link
Collaborator

No description provided.

@jasagredo jasagredo changed the base branch from master to js/numeric-data April 11, 2025 13:55
Copy link
Member

@lehins lehins left a comment

Choose a reason for hiding this comment

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

Just some minor suggestions that I noticed when was skimming through the code

validateGroup cddl (NE.toList tss) newRules
(t NE.:| ts, _) ->
doValidate cddl t rule
*> (maybe (pure ()) (\ne -> validateItem cddl ne rule) $ NE.nonEmpty ts)
Copy link
Member

Choose a reason for hiding this comment

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

Seems like a common patter. Would probably be useful to create a helper for it

@@ -70,6 +71,8 @@ library
, data-default-class
, foldable1-classes-compat
, generic-optics
, lens
Copy link
Member

Choose a reason for hiding this comment

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

We avoid lens, since it's dependency footprint is enormous

Suggested change
, lens
, microlens

@jasagredo jasagredo force-pushed the js/numeric-data branch 2 times, most recently from c277099 to f58e83d Compare April 14, 2025 13:49
@jasagredo jasagredo self-assigned this Apr 15, 2025
@jasagredo jasagredo moved this to 🏗 In progress in Consensus Team Backlog Apr 15, 2025
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.

2 participants