Skip to content

Consistent error serializing for GraphqlError #207

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

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

tailhook
Copy link
Contributor

Graphql spec requires every error contain {"message": "field"}. Every
error in juniper except ones fixed here are reported consistently with
this style. This commit fixes the representations of the three errors left.

While technically this commit can be treated as breaking, I think this issue is an oversight rather than intentional and should be fixed as a bug.

What do you think?

Graphql spec requires every error contain `{"message": "field"}`. Every
error in juniper except ones fixed here are reported consistently with
this style. This commit fixes ones left.
@LegNeato
Copy link
Member

Looks great, thanks! I'm not worried about it being a breaking change as long as we are closer to the spec.

@LegNeato LegNeato merged commit 2e9408e into graphql-rust:master Jul 10, 2018
@theduke
Copy link
Member

theduke commented Jul 19, 2018

@tailhook 👍

@tailhook tailhook deleted the consistent_errors branch July 19, 2018 19:34
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.

3 participants