View Source Exzeitable.Params.Validations (Exzeitable v0.6.0)

Using these instead of Keyword.fetch! to provide nice easily resolvable errors.

Link to this section Summary

Functions

If you have parent then you need belongs_to, and vice versa.

Raises if any of the required keys are not present

Link to this section Functions

@spec paired_options(map()) :: map()

If you have parent then you need belongs_to, and vice versa.

Link to this function

required_keys_present(params, required_keys)

View Source
@spec required_keys_present(map(), [atom()]) :: map()

Raises if any of the required keys are not present