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

Support validation for Boxed values #96

Closed
dron8552 opened this issue Jul 27, 2018 · 2 comments
Closed

Support validation for Boxed values #96

dron8552 opened this issue Jul 27, 2018 · 2 comments

Comments

@dron8552
Copy link

Now there is no validation function that supports Boxed value validation.

@MrWolfZ
Copy link
Owner

MrWolfZ commented Jul 28, 2018

Indeed, your are absolutely right. I completely missed this. I'll add support for boxed values to all validation functions where it makes sense (i.e. required, etc.) with the next minor version update. Until then you call always wrap the validation functions and call unbox yourself, i.e.

const validateForm = updateGroup<MyFormValue>({
  myBoxedObject: validate(value => required(unbox(value))),
});

@MrWolfZ
Copy link
Owner

MrWolfZ commented Dec 31, 2018

Holy hell, half a year has already passed. I just released support for validation of boxed values in the latest release (wanted to still do this in 2018 ;) ).

@MrWolfZ MrWolfZ closed this as completed Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants