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

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

Summary

Functions

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

Raises if any of the required keys are not present

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