From 68f25aa13ed67e30cf7a2c0590be153d5f563b64 Mon Sep 17 00:00:00 2001 From: phcurado Date: Sat, 10 Dec 2022 20:10:16 +0200 Subject: [PATCH] release 0.8.0 --- CHANGELOG.md | 11 +++++++++++ lib/parameter/schema.ex | 2 +- mix.exs | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 657a04c..7827210 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## v0.8.x (2022-12-10) + +### 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 +* [Parameter] Fix a bug where `load/3` and `validate/3` was evaluating the `validator` option wrongly. + ## v0.7.x (2022-11-07) ### Enhancements diff --git a/lib/parameter/schema.ex b/lib/parameter/schema.ex index d0ed67a..359b62c 100644 --- a/lib/parameter/schema.ex +++ b/lib/parameter/schema.ex @@ -84,7 +84,7 @@ defmodule Parameter.Schema do ## Runtime Schemas - It's also possible schemas via runtime without relying on any macros. + It's also possible to create schemas via runtime without relying on any macros. The API is almost the same comparing to the macro's examples: schema = %{ diff --git a/mix.exs b/mix.exs index 409479d..a4c5622 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule Parameter.MixProject do use Mix.Project @source_url "https://github.com/phcurado/parameter" - @version "0.7.4" + @version "0.8.0" def project do [