Skip to content
New issue

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

Validating object unknown properties #1450

Open
Yonier opened this issue Aug 30, 2021 · 0 comments
Open

Validating object unknown properties #1450

Yonier opened this issue Aug 30, 2021 · 0 comments

Comments

@Yonier
Copy link

Yonier commented Aug 30, 2021

I have a javascript function where it push new properties inside a object, but this name properties are not always defined, so i want to add rules to those object properties, i have a code like this:

`
const validationSchema = object().shape({

        box: object() // i want to add string().required() to all the new properties of that object...
    })`

is this possible?, thanks.

yup version:
"yup": "^0.32.9"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants