Skip to content

Max Rule Not Working for Numeric String #36

Closed
@rajbirikon

Description

@rajbirikon

My rule is this

rules = {
'card_number': ['bail', 'required', 'string', 'max:20'],
'card_expiry_date': ['bail', 'required','string', 'max:8'],
'card_cvv': ['bail', 'required', 'string', 'max:8']
}

I am passing the values

card_number = "876545666"
card_expiry_Date="0234"
card_cvv="123"

but this show error max value must be 20.

How can we validate that the string characters max:20 for value "8777745434"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions