I have custom_fields attribute {:array, :map} that contains array of custom fields and their Validation rules. I’d like to validate these fields using AshPhoenix.Form
.
How can I validate the following fields without associating them with a resource?
[
%{field: "name", validations: [required: true, min_length: 3]},
%{field: "age", validations: [required: true, min: 18]}
]