-
|
Hello everybody, with vee-validate supporting reactive validation schema (thanks again :-) ) I was thinking about adding validation on dynamic fields. What I want to archive I got a dynamic list of fields that I would like to validate. Each field contains information about the input-type (string, boolean, integer, ...) and whether it's required or not. Example: Inside of the For this example, the schema should be expanded by two rules: Now I was wondering which way to prefer:
I would love to hear which way you'd prefer. If you got information on how to do this most elegantly, I'd love to hear that. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
My first attempt: But unfortunately |
Beta Was this translation helpful? Give feedback.
-
|
You could try |
Beta Was this translation helpful? Give feedback.
You could try
.concatto merge two schemas, but other than that it's not something vee-validate will be able to solve.