ExAirtable.Phoenix.Validators (ex_airtable_phoenix v0.1.1) View Source

Validation functions that will be automatically included when you use the ExAirtable.Phoenix.Model module.

Link to this section Summary

Functions

Ensure that at least one of a given list of fields has data.

Link to this section Functions

Link to this function

validate_one_of(changeset, fields \\ [])

View Source

Ensure that at least one of a given list of fields has data.

fields should be a list of atoms, eg: [:text, :description, :url].