Answer the question
In order to leave comments, you need to log in
Dry-validation max-size?
Hello. Tell me please.
I have validation
schema = Dry::Validation.Schema do
required(:login).filled(:str?, max_size?: 100)
end
errors = schema.call({login: ''}).messages
{
"errors": {
"login": [
"must be filled",
"size cannot be greater than 100"
]
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question