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

Multiple type options are not working as expected #350

Open
dancecoder opened this issue Aug 27, 2021 · 0 comments
Open

Multiple type options are not working as expected #350

dancecoder opened this issue Aug 27, 2021 · 0 comments

Comments

@dancecoder
Copy link

in the documentation it is mentioned multiple type options are possible:

// Note that multiple type options can be provided in an array.
"validateType2": {
    "type": ["boolean", "string"]
},

It is very nice feature. However when i've tried to use it I've got type error:

{
  "name": "InvalidTypeError",
  "message": "Type [\"number\", \"string\"] is not a valid type"
}

Tested with package version 1.4.0

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

No branches or pull requests

1 participant