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

Validator message for numeric size is confusing #214

Closed
letmaik opened this issue Apr 14, 2024 · 2 comments
Closed

Validator message for numeric size is confusing #214

letmaik opened this issue Apr 14, 2024 · 2 comments

Comments

@letmaik
Copy link

letmaik commented Apr 14, 2024

Environment

"@vueform/vueform": "^1.9.4"

Reproduction

:rules="[
            'required',
            'numeric',
            'size:4'
          ]"

Describe the bug

The <field> must be 4.

I would have expected The <field> must be 4 digits.

Additional context

No response

Logs

No response

@letmaik
Copy link
Author

letmaik commented Apr 14, 2024

Actually, it seems to be correct, it really validates if the input is equal to the given number. What's the use case for that? How can I validate if something is 4 digits?

@letmaik
Copy link
Author

letmaik commented Apr 14, 2024

Nevermind... 'digits:4'. I should read the docs more carefully.

@letmaik letmaik closed this as completed Apr 14, 2024
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

1 participant