-
Notifications
You must be signed in to change notification settings - Fork 224
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
mask does not work anymore. #1265
Comments
Hi @Ayora29, thank you for the report. Could you provide some more information? Please link an example so we can help debug or explain some functionality, otherwise we can't do much at all. We have many issues to work through in this project and its an entirely volunteer based team, so it would save us (and you) time to write some more information along with your report. This would include:
Also noted here in the documentation:
|
@Ayora29 it would be great if you could supply a minimal repro as @yeoffrey mentioned. If there indeed is an actual issue I would love it get to the bottom of this. For our tested cases and in all of the code I have access to |
Are these StructError(s) from mask expected? expect(()=> string().mask(undefined)).throws(/Expected a string, but received: undefined/)
expect(()=> object({ f1: string() }).mask({})).throws(/Expected a string, but received: undefined/)
|
The mask utility does not work in the 2.0.2 version.
If used with "type" struct it does nothing. If used with "object" struct it throws a StructError for any unknown field.
I had rollback to 1.0.4 version and it works as intended.
The text was updated successfully, but these errors were encountered: