Ash FrameworkAF
Ash Framework3y ago
14 replies
TechnoMage

Custom validation example

It would be very helpful to have an example validation in the docs for custom validations. I am getting hung up creating an error that implements the form error protocol. The following generates an error but is then stripped out before rending the form.

error = Ash.Error.to_ash_error("Domain or company is required")
Was this page helpful?