View Source Changelog

v0-12-x-2023-03-06

v0.12.x (2023-03-06)

enhancements

Enhancements

  • [Parameter.Schema.Compiler] Unify schema compiler for macro and functional API.
  • [Parameter.Types.Any] Renamed module to Parameter.Types.AnyType to fix elixir warnings
  • [Parameter] Fix load, dump and validate functions to correctly parse Enum values in nested schema.
  • [Parameter.Schema] default options for nested schema is now available.
  • [Parameter.Schema] Add a description on what use Parameter.Schema does.

deprecations

Deprecations

  • [Parameter.Types.List] removed type in favor of Array type

v0-11-x-2023-01-18

v0.11.x (2023-01-18)

enhancements-1

Enhancements

  • [Parameter] Extra option ignore_empty for load/2 and dump/2 functions.
  • [Parameter.Schema] has_one and has_many nested types as map and array composite types.

deprecations-1

Deprecations

  • [Parameter.Enum] removed enum value macro with the as key.

v0-10-x-2023-01-07

v0.10.x (2023-01-07)

enhancements-2

Enhancements

  • [Parameter] Extra option ignore_nil for load/2 and dump/2 functions.
  • [Parameter.Types] New array type.
  • [Parameter.Schema] Support for nested type on map and array.
  • Improved code test coverage to 100%.

v0-9-x-2023-01-04

v0.9.x (2023-01-04)

enhancements-3

Enhancements

  • [Parameter.Field] Support for on_load/2 and on_dump/2 functions in field definition.

v0-8-x-2022-12-10

v0.8.x (2022-12-10)

enhancements-4

Enhancements

  • [Parameter.Schema] Supports compile/1 function for compiling runtime schemas.
  • [Parameter] load/3, validate/3 and dump/3 now support evaluating parameters using runtime schemas.
  • [Parameter.Validators] Improved length/2 validator to support min and/or max attributes. Before it was only accepting both.

bug-fixes

Bug fixes

  • [Parameter] Fix a bug where load/3 and validate/3 was evaluating the validator option wrongly.
  • [Parameter.Field] Validator typespec.
  • [Parameter.Enum] Fix evaluation of enum values inside Enum macro

v0-7-x-2022-11-07

v0.7.x (2022-11-07)

enhancements-5

Enhancements

  • [Parameter] New validate/3 function
  • [Parameter] Supports for load/3 parsing maps with atom keys
  • [Parameter.Schema] Supports for fields_required module attribute on schema

bug-fixes-1

Bug fixes

  • [Parameter] dump/3 function to load the value to be dumped
  • [Parameter] consider basic types when loading, dumping or validating a schema
  • [Parameter.Field] remove compile time verification for custom types

v0-6-x-2022-11-06

v0.6.x (2022-11-06)

enhancements-6

Enhancements

  • [Parameter] API changes to support new parameter_ecto library
  • [Parameter] Support for many flag on load/3 and dump/3 options
  • [Parameter] Errors when parsing list return as map with %{index => reason} now instead of {:#{index}, reason} to avoid atom creation
  • [Parameter.Field] Support for load_default and dump_default options
  • [Parameter.Enum] Deprecated as in favour of key

bug-fixes-2

Bug fixes

  • [Parameter.Field] Return default value when calling Parameter.dump/3 with empty value.

v0-5-x-2022-10-26

v0.5.x (2022-10-26)

enhancements-7

Enhancements

  • [Parameter] Support for exclude option for load/3 and dump/3.
  • [Parameter.Types] Support for any type
  • [Parameter.Schema] Support for virtual fields