Skip to content

polish(validateInputValue): cover invalid values in iterable input - #4845

Open
vrana055 wants to merge 1 commit into
graphql:17.x.xfrom
vrana055:polish/validate-input-value-iterable
Open

polish(validateInputValue): cover invalid values in iterable input#4845
vrana055 wants to merge 1 commit into
graphql:17.x.xfrom
vrana055:polish/validate-input-value-iterable

Conversation

@vrana055

@vrana055 vrana055 commented Aug 8, 2026

Copy link
Copy Markdown

validateInputValue accepts any iterable for a list type, but the iterable test only asserted the success case and carried a TODO: put an error in this list and show it appears.

This adds the error case: a generator yielding an invalid item, asserting the reported error paths use the item indices. The TODO comment is removed.

No behaviour change — tests only.

The list test for non-array iterables only asserted the success case and
carried a TODO asking for an error case. Add one so the reported error
paths for a generator input are pinned down.
@vercel

vercel Bot commented Aug 8, 2026

Copy link
Copy Markdown

@vrana055 is attempting to deploy a commit to the The GraphQL Foundation Team on Vercel.

A member of the Team first needs to authorize it.

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