You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding checkExact() to the end of the chain above however does not seem to cause the following example to fail validation, despite it having one additional unwanted property (wrong) in the second object:
Hi all,
quick question: Is the checkExact() middleware supported for wildcards?
E.g. consider the following scenario:
I need to validate a body that looks something like this:
-> So essentially an array of objects with an id and qty property.
I can nicely check for validity with the following chain
Adding
checkExact()
to the end of the chain above however does not seem to cause the following example to fail validation, despite it having one additional unwanted property (wrong
) in the second object:So I wonder: is this scenario even supported currently, or am I running into a bug (or maybe I am doing something wrong?)
thanks in advance
Kind regards,
Pano
The text was updated successfully, but these errors were encountered: