validation_schema = {
title: 'required|min:3|max:80',
price: 'required|float',
}
const validation_error_messages = {
required: '{{ field }} cannot be empty',
min: '{{ field }} must be at least {{ argument.0 }} characters',
max: '{{ field }} cannot be more than {{ argument.0 }} characters',
}
Is returning "title must be at least characters" or "title cannot be more than characters" when validation is run. The {{ argument.0 }} part isn't showing up.
Is returning "title must be at least characters" or "title cannot be more than characters" when validation is run. The {{ argument.0 }} part isn't showing up.