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
I have a validator as follows: schema = Schema([And(list, lambda x: len(x) == 4)])
Here it validates a list of lists where each child list would have 4 elements.
Question is how should I modify this validator so that it could also verify the elements inside each child list, say they need to be of float type?
The text was updated successfully, but these errors were encountered:
anh193
changed the title
Validate a nested list and its elements
Validate a nested list and its elements?
Oct 20, 2021
I have a validator as follows:
schema = Schema([And(list, lambda x: len(x) == 4)])
Here it validates a list of lists where each child list would have 4 elements.
Question is how should I modify this validator so that it could also verify the elements inside each child list, say they need to be of
float
type?The text was updated successfully, but these errors were encountered: