Skip to content

fix: keep omitted array options absent - #176

Open
edram wants to merge 2 commits into
cacjs:mainfrom
edram:issues/175
Open

edram wants to merge 2 commits into
cacjs:mainfrom
edram:issues/175

Conversation

@edram

@edram edram commented Sep 17, 2026

Copy link
Copy Markdown

When an unrelated option is passed, an omitted array option becomes [undefined], or ['undefined'] with type: [String].

Skip array conversion for absent options while preserving the existing behavior for supplied values and explicit defaults.

Closes #175

edram and others added 2 commits September 17, 2026 11:24
Capture the unexpected array value when an unrelated option is passed.
The regression test intentionally fails until the parser is fixed.

Refs: cacjs#175
Co-Authored-By: Codex GPT-6 <noreply@openai.com>
Avoid converting array options that were not provided.

Fixes: cacjs#175
Co-Authored-By: Codex GPT-6 <noreply@openai.com>
@edram
edram marked this pull request as ready for review September 17, 2026 04:54
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.

Omitted array option becomes [undefined] when an unrelated option is passed

1 participant