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

Add a strict mode for parsing responses #3344

Open
lwasyl opened this issue Sep 9, 2021 · 0 comments
Open

Add a strict mode for parsing responses #3344

lwasyl opened this issue Sep 9, 2021 · 0 comments

Comments

@lwasyl
Copy link
Contributor

lwasyl commented Sep 9, 2021

Original discussion on Kotlinlang Slack: https://kotlinlang.slack.com/archives/C01A6KM1SBZ/p1631193087025200

Such strict mode could check that the parsed responses contain exactly the data that schema and query describe:

  • all __typename values match the types defined by the schema
  • there are no additional fields/objects in the json response (excluding extensions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants