A library to validate values of nested structs with their type spec t() and associated precondition functions
validate_type/*
function to run without Ecto validate_required warning.__t__/0
reflection function to each struct using Domo, which returns a binary description of the struct's type spec t(). Useful when you want to know the type Domo validation is built on.mix deps.update domo
, please, remove .elixir_ls
in your project directory and reopen VSCode.name_of_new_function
to gen_constructor_name
. Please, update your project.new!/1/0
and new/2/1/0
composable instead of overridable, see Custom constructor function section in README.Ecto.Schema
types: belongs_to(t)
, has_one(t)
, has_many(t)
, many_to_many(t)
, embeds_one(t)
, and embeds_many(t)
.validate_type/2
function for changesets:
Ecto
schema.Ecto.Schema
types are listed above, so the user can explicitly call cast_assoc/2/3
for these fields.term()
with other types as the term()
.new!/1/0
and new/2/1/0
become overridable.mix dialyzer
pass on generated code.mix test
and mix dialyzer
without crashes.:domo_phoenix_hot_reload
after :elixir
to compilers
list in the mix.exs file and to reloadable_compilers
list in the config file.test_coverage
configuration example to exclude generated TypeEnsurer
modules from the test coverage reportFix to generate type ensurers only in the scope of the given app in umbrella
Fix for Elixir v1.13 to recompile depending module's type ensurer on the change of type in another module by deleting .beam
file
Deprecate ensure_struct_defaults: false
for skip_defaults: true
, the former option is supported till the next version. Please, migrate to the latter one.