Skip to content

feat: include parameter position in ParseError - #9

Merged
falood merged 1 commit into
elixir-maru:mainfrom
feng19:feat/parse-error-position
Aug 17, 2026
Merged

falood merged 1 commit into
elixir-maru:mainfrom
feng19:feat/parse-error-position

Conversation

@feng19

@feng19 feng19 commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

ParseError only reported the name of the failing parameter, which is ambiguous for nested params, list items and custom types.

Track the position while parsing: nested children inherit their parent path, list branches append the item index, and errors crossing a custom type boundary get the outer prefix prepended while unwinding. The position is exposed as :path and rendered in the message, e.g. Error Parsing Parameter map.m2[1].d2``.

@falood

falood commented Aug 17, 2026

Copy link
Copy Markdown
Member

Thanks ❤️

@falood
falood merged commit 433c6d0 into elixir-maru:main Aug 17, 2026
2 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.

2 participants