Validator icon indicating copy to clipboard operation
Validator copied to clipboard

Custom validation messages doen't work with subType messages

Open IvanD4RE opened this issue 1 year ago • 0 comments

sample code:

    const messagesCustom = {
      "min":{
      "numeric": ":attr minimo :min.",
      "file": ":attr dev'essere almeno :min kilobytes.",
      "string": ":attr deve essere lungo almeno :min caratteri.",
     "array": ":attr deve avere almeno :min elementi.",      }
    }
    Validator.make(building, rules,messagesCustom);

IvanD4RE avatar Oct 09 '23 13:10 IvanD4RE