-
Notifications
You must be signed in to change notification settings - Fork 88
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
Q: Object with random key:value validation #302
Comments
Maybe it will be a solution? #276 |
It seems it's only making a way to expect the key to be one or the other, though if they support the multi validation type for the value, it could work. I have a object with random data, that data is key |
Hi,
In the validation here, I have the validation below for, since there are random key:value, that can be put on.
What I want to ask, is there a way to validate the value type in these random (key:value)?
Like have the random values only be type string | number | boolean.
e.g., in typescript
{ data: Record<string, string | number | boolean>; }
The text was updated successfully, but these errors were encountered: