retort v1.2.0 Retort.Meta

Ensures that the JSONAPI meta is correct for the environment

Summary

Functions

Returns meta if it is valid for the environment; otherwise, raises an ArgumentError

Functions

valid!(meta, map)
valid!(%{optional(String.t) => binary} | %{beam: binary} | map, %{ecto_schema_modules: [module, ...]}) :: map

Returns meta if it is valid for the environment; otherwise, raises an ArgumentError