Skip to content

fix #2754 - Missing required IEnumerable argument causes runtime error#2790

Merged
jonsequitur merged 1 commit intodotnet:mainfrom
jonsequitur:fix/2754-ienumerable-required-arg
Apr 3, 2026
Merged

fix #2754 - Missing required IEnumerable argument causes runtime error#2790
jonsequitur merged 1 commit intodotnet:mainfrom
jonsequitur:fix/2754-ienumerable-required-arg

Conversation

@jonsequitur
Copy link
Copy Markdown
Contributor

@jonsequitur jonsequitur commented Apr 2, 2026

Fixes #2754

This pull request enhances the handling and validation of required arguments, particularly for IEnumerable arguments, and updates the default value logic in the GetRequiredValue method. The changes ensure that arguments with zero minimum arity return an empty collection rather than throwing an error, while still enforcing errors for required arguments with higher arity.

@jonsequitur jonsequitur requested a review from adamsitnik April 2, 2026 19:51
@jeffhandley jeffhandley changed the title fix #2754 fix #2754 - Missing required IEnumerable argument causes runtime error Apr 3, 2026
@jonsequitur jonsequitur merged commit 23ec3f4 into dotnet:main Apr 3, 2026
9 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.

Missing required IEnumerable argument causes runtime error

2 participants