Skip to content

Release 0.14.1 - #193

Merged
andreashasse merged 1 commit into
mainfrom
release/0.14.1
Sep 14, 2026
Merged

andreashasse merged 1 commit into
mainfrom
release/0.14.1

Conversation

@andreashasse

Copy link
Copy Markdown
Owner

Release 0.14.1

Fixed

  • Encoding a struct type (a map type with a __struct__ field, e.g. from Elixir) with non-map data (a string, integer, list, or atom) crashed with a raw badmap error instead of returning {error, [spectra:error()]}. Plain map types, list types, record types, and decoding were unaffected — only the struct branch of to_json/4 was missing its is_map/1 guard.

@andreashasse
andreashasse merged commit 03fd7bf into main Sep 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant