Skip to content

How to validate array of fields using yup.number(). yup.string() does works perfect #3496

Answered by logaretm
thamibn asked this question in Q&A
Discussion options

You must be logged in to vote

just changed the srting() to number()

I don't see any number rule on the example, can you check?

does not work

what does "does not work" mean? describe what are you seeing and what you think you should see.


EDIT ANSWER: Remove .strict() as it prevent coersion/casting string values.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@thamibn
Comment options

@logaretm
Comment options

@thamibn
Comment options

@logaretm
Comment options

@thamibn
Comment options

Answer selected by thamibn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants