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

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

paired_options(session)

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

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

required_keys_present(params, required_keys)

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

Raises if any of the required keys are not present