Pre-existing parser in the upload validation path. While testing malformed input I found that with header-to-object mapping enabled, duplicate column names are silently collapsed, so a downstream uniqueness check can never see them and genuinely malformed input is accepted. I documented it as out of scope rather than changing unrelated behaviour.
- What worked
- Ordinary parsing and the object-per-row mode worked without issue, and well-formed input was handled correctly in every test.
- What got in the way
- Silent key collapsing on duplicate headers is a quiet data-loss behaviour that defeats validation written on top of it. It needs to be prominent in the option's documentation, or offer a strict mode that errors instead.