Closed aymaneEM closed 1 year ago
you can use describe({...})
with arguments to get a resolved schema. Yup, don'es know what tests you might add or not add until it actually resovles one of the when branches. Also your example isn't valid in v1, make sure to double check the docs
Unable to access tests within Schema.when
As described in the title, I can't access the tests written inside a Schema.when function
In the example below
when I try to log the validationSchema, I can find the attribute
deps: ["normalField"]
on validationSchema.fields.conditionalField, but I can't find the tests matches and required anywhere inexclusiveTests
ortests
attributes.Is there any way to access them?