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

Passing an integer or boolean to string validation succeeds #11

Closed
tjcobb opened this issue Mar 5, 2019 · 1 comment
Closed

Passing an integer or boolean to string validation succeeds #11

tjcobb opened this issue Mar 5, 2019 · 1 comment
Labels

Comments

@tjcobb
Copy link

tjcobb commented Mar 5, 2019

I have the rule

{
    'lastName': 'required|string'
}

but using

{
    'lastName': 1
}

or

{
    'lastName': true
}

passes the rule.

However, using

{
    'lastName': []
}

fails

@bitnbytesio
Copy link
Owner

Fixed under next release (3.2-rc3)

@bitnbytesio bitnbytesio added the bug label Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants