-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: js/numeric-data
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
, lens | |
, microlens |
c277099
to
f58e83d
Compare
No description provided.