estructura
estructura copied to clipboard
Extensions for Elixir structures
Estructura

Extensions for Elixir structures.
Installation
def deps do
[
{:estructura, "~> 0.1"},
# optionally you might want to add `boundary` library
# it is used by `estructura` and many other projects
# more info: https://hexdocs.pm/boundary
{:boundary, "~> 0.9", runtime: false}
]
end
I suggest adding boundary as a dependency since that is used in this project.
Changelog
1.5.0— no:formulaedependency1.4.1— allow functions of arity 1 incontentas coercers in a call toEstructura.Aston.coerce/21.4.0— allow coercers in a call toEstructura.Aston.coerce/21.3.0— calculated fields forEstructuraandEstructura.Nested1.2.12— export type fromEstructura.Nested1.2.11— nullable coercers1.2.10— coercers for floats, and date/time values1.2.8—Estructura.Tree→Estructura.Aston+Aston.access/2to retrieve and access key by names1.2.5—use Estructura.Nested flattenable: boolean(), jason: boolean(), transformer: boolean()1.2.3— Severalcoerce/1andvalidate/1clauses, default coercers1.2.2—Estructura.Flattenable1.2.1— Generators for:datetimeand:date1.2.0—Estructura.Nestedwould attempt to split keys by a delimiter if instructed1.1.0—Estructura.Astonto hold an AST structure, like XML1.0.0— Elixir v1.16 and deps0.6.0—Estructura.Transformto produce squeezed representations of nested structs0.5.5— export declarations of bothEstructuraandEstructura.Nestedto docs0.5.4—Estructura.Nestedallowscast/1to cast nested structs from maps0.5.3—Estructura.diff/3now understands maps0.5.2—Estructura.diff/30.5.1— [BUG] FixedCollectableandEnumerableinjected implementations0.5.0—Estructura.Nestedfor nested structures with validation, coercion, and generation0.4.2— [BUG] Fixed wrong spec forput!/30.4.1—Estructura.LazyMap.keys/1,Estructura.LazyMap.fetch_all/10.4.0—Estructura.Lazy,Estructura.LazyMap0.3.2—put!/30.3.0—coercionandvalidationare now injected as behaviours0.2.0—coercion,validation,put/3