View Source Changelog

v0-8-x-2022-12-10

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

enhancements

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.

v0-7-x-2022-11-07

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

enhancements-1

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-2

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-3

Enhancements

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