Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix error handling for input values #62

Merged
merged 1 commit into from
Nov 8, 2024

Conversation

stuebingerb
Copy link
Owner

This resolves #59 and some related issues with error handling. In particular:

  • Providing incorrect data types for input values (e.g. an object for a list) no longer causes HTTP 500 responses but results in proper GraphQL errors
  • Existing validation for list values no longer show "type null" but "type List"
  • Lists and enum values in error messages no longer show object references but their actual values

This resolves #59 and some related issues with error handling. In
particular:

- Providing incorrect data types for input values (e.g. an object for
  a list) no longer causes HTTP 500 responses but results in proper
  GraphQL errors
- Existing validation for list values no longer show "type null" but
  "type List"
- Lists and enum values in error messages no longer show object
  references but their actual values
@stuebingerb stuebingerb force-pushed the fix/fix-input-validation branch from c77a31c to cf557ab Compare November 7, 2024 14:04
@stuebingerb stuebingerb merged commit 47e05f0 into main Nov 8, 2024
6 checks passed
@stuebingerb stuebingerb deleted the fix/fix-input-validation branch November 8, 2024 08:21
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.

Invalid input types may cause HTTP 500 errors
2 participants