Skip to content

v0.2.0

Latest

Choose a tag to compare

@fuelen fuelen released this 19 Apr 09:23
· 2 commits to main since this release

Added

  • source option for :union, :list, and :tuple types.
  • validate functions can now return :ok, :error, or {:error, reason} in addition to true/false. {:error, reason} allows custom error reasons; :ok/:error mirror true/false.

Changed

  • Dynamic maps (keys/values) now collect all entry errors instead of stopping at the first one, consistent with how fields behave.

Documentation

  • New guide: using Mold with HTTP clients.
  • New guide: formatting errors.
  • Trace examples in README and parse!/2 docstring now use atoms instead of strings.

Full Changelog: v0.1.2...v0.2.0