We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If we use yup's test() and use the parent value to validate, context.from[1].value is any type. Is it possible to avoid any?
test()
context.from[1].value
const variationsSchema = yup.array().of( yup .object() .shape({ id: yup.string(), value: yup .string() .required() .test( 'isNumber', intl.formatMessage(messages.input.error.notNumber), (value, context) => { if ( context.from[1].value.variationType == Feature.VariationType.NUMBER.toString() ) { return !isNaN(Number(value)); } return true; } ) ...
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature you'd like
If we use yup's
test()
and use the parent value to validate,context.from[1].value
is any type. Is it possible to avoid any?Background
No response
Alternative solutions
No response
The text was updated successfully, but these errors were encountered: