I am working in an application where the user can define a form by providing an array of field configuration objects.
I need to validate that input before saving it into the DB, something like what API-check does underneath. For instance, the next form definition is wrong because it is using "keys" instead of "key":
I am working in an application where the user can define a form by providing an array of field configuration objects.
I need to validate that input before saving it into the DB, something like what API-check does underneath. For instance, the next form definition is wrong because it is using "keys" instead of "key":
[ { "keys": my_key", "types": "input", "templateOptions": { "type": "string", "label": "Clip" } } ]
Ideally the application should provide a feedback about the error to the user.
Does angular-formly have something to do that or should I create my own validator?
Thanks.