<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq" -->

---
title: Release v0.3.0 · fuelen/mold | daily.dev
description: Mold v0.3.0 changes list validation to collect all element errors instead of stopping at the first, matching how maps and tuples already behave. The :integer,...
canonical: https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Release v0.3.0 · fuelen/mold | daily.dev
og:description: Mold v0.3.0 changes list validation to collect all element errors instead of stopping at the first, matching how maps and tuples already behave. The :integer,...
og:url: https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq
og:image: https://api.daily.dev/og/posts/XTEbSc7MQ.png
og:image:alt: Release v0.3.0 · fuelen/mold
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Release v0.3.0 · fuelen/mold

**[ElixirStatus](https://daily.dev/sources/elixirstatus)** · 2 min read · 0 upvotes · 0 comments

## Summary

Mold v0.3.0 changes list validation to collect all element errors instead of stopping at the first, matching how maps and tuples already behave. The :integer, :float, :boolean, and :atom types now treat empty strings as nil (previously only :string and date/time types did this), which affects how nilable and default options work and changes the error reason from :invalid_format to :unexpected_nil in some cases. A bug allowing :atom to silently accept an empty string as :"" is fixed. Optional fields and fields with defaults no longer mask :unexpected_type errors from malformed intermediate values. Documentation was updated to cover empty-string handling, the full validate return contract, and error-formatting examples.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://github.com/fuelen/mold/releases/tag/v0.3.0>

## Questions this post answers

### What changed in Mold v0.3.0 for validating lists in Elixir?

Lists now collect all element validation errors instead of stopping at the first failure, matching the existing behavior already used for maps and tuples in the Mold library. This gives callers a complete set of errors for a list in one validation pass rather than requiring repeated fix-and-revalidate cycles for each element.

_Track breaking changes like this Mold release directly on daily.dev before upgrading a validation-heavy Elixir codebase._

### Why did my Mold validation error change from :invalid_format to :unexpected_nil for empty strings?

As of Mold v0.3.0, the :integer, :float, :boolean, and :atom types now treat empty strings as nil, consistent with :string and the date/time types. When neither nilable nor default is set, the error reason for an empty string input changed from :invalid_format to :unexpected_nil, so nilable and default now work correctly for these types.

_daily.dev helps Elixir developers catch validation error changes like this before they break production checks._

### Did Mold's :atom type ever accept an empty string as a valid atom?

Yes, prior to v0.3.0, Mold's :atom type silently accepted an empty string as the atom :"", because String.to_existing_atom("") never raises since :"" always exists at runtime. This bug is fixed in v0.3.0, so an empty string no longer passes validation silently for :atom fields.

_Following library fixes like this on daily.dev keeps Elixir validation code from shipping silent bugs._

## Similar posts on daily.dev

- [Mold — Mold v0.2.0](https://daily.dev/posts/mold-mold-v0-2-0-s9ug73u7v) · ElixirStatus · 7 upvotes · 0 comments
- [GitHub - fuelen/mold: A tiny, zero-dependency parsing library for external payloads](https://daily.dev/posts/github---fuelen-mold-a-tiny-zero-dependency-parsing-library-for-external-payloads-vrgq1hgvq) · ElixirStatus · 0 upvotes · 0 comments
- [Elixir v1.20.0-rc.0 released](https://daily.dev/posts/elixir-v1-20-0-rc-0-released-dwawfn6o5) · Elixir Forum · 0 upvotes · 0 comments
- [mold](https://daily.dev/posts/mold-llmdvzktj) · ElixirStatus · 2 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#elixir](https://daily.dev/tags/elixir)

[View this post on daily.dev](https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Release v0.3.0 · fuelen/mold","url":"https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq"},"datePublished":"2026-08-28T21:24:31.277Z","dateModified":"2026-09-14T07:44:56.157Z","description":"Mold v0.3.0 changes list validation to collect all element errors instead of stopping at the first, matching how maps and tuples already behave. The :integer,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/99ca7400f61afe15e362b43b9da4ad32?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/99ca7400f61afe15e362b43b9da4ad32?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"ElixirStatus","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ElixirStatus","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/22e4640538124187827caf8cc8e39190","url":"https://daily.dev/sources/elixirstatus"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,elixir","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ElixirStatus","item":"https://daily.dev/sources/elixirstatus"},{"@type":"ListItem","position":3,"name":"Release v0.3.0 · fuelen/mold"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/release-v0-3-0-fuelen-mold-xtebsc7mq#faq","mainEntity":[{"@type":"Question","name":"What changed in Mold v0.3.0 for validating lists in Elixir?","acceptedAnswer":{"@type":"Answer","text":"Lists now collect all element validation errors instead of stopping at the first failure, matching the existing behavior already used for maps and tuples in the Mold library. This gives callers a complete set of errors for a list in one validation pass rather than requiring repeated fix-and-revalidate cycles for each element. Track breaking changes like this Mold release directly on daily.dev before upgrading a validation-heavy Elixir codebase."}},{"@type":"Question","name":"Why did my Mold validation error change from :invalid_format to :unexpected_nil for empty strings?","acceptedAnswer":{"@type":"Answer","text":"As of Mold v0.3.0, the :integer, :float, :boolean, and :atom types now treat empty strings as nil, consistent with :string and the date/time types. When neither nilable nor default is set, the error reason for an empty string input changed from :invalid_format to :unexpected_nil, so nilable and default now work correctly for these types. daily.dev helps Elixir developers catch validation error changes like this before they break production checks."}},{"@type":"Question","name":"Did Mold's :atom type ever accept an empty string as a valid atom?","acceptedAnswer":{"@type":"Answer","text":"Yes, prior to v0.3.0, Mold's :atom type silently accepted an empty string as the atom :\"\", because String.to_existing_atom(\"\") never raises since :\"\" always exists at runtime. This bug is fixed in v0.3.0, so an empty string no longer passes validation silently for :atom fields. Following library fixes like this on daily.dev keeps Elixir validation code from shipping silent bugs."}}]}
```

