poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

{{ argument.0 }} is returning empty #254

Open rzel opened 4 years ago

rzel commented 4 years ago
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.