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 serializing of JSON default values #969

Merged
merged 2 commits into from Jul 4, 2022

Conversation

urkle
Copy link
Contributor

@urkle urkle commented Jun 30, 2022

This changes the InputType::to_value implementations to serialize the JSON values to strings. (since these are scalar types GraphQL requires it to be a string for the default)

@urkle urkle force-pushed the fix-json-default-serialize branch 2 times, most recently from 1add0ec to ea53d6c Compare June 30, 2022 03:10
@urkle urkle force-pushed the fix-json-default-serialize branch from ea53d6c to 224a376 Compare June 30, 2022 03:15
@urkle urkle marked this pull request as ready for review June 30, 2022 03:31
@sunli829 sunli829 merged commit 036c165 into async-graphql:master Jul 4, 2022
@sunli829
Copy link
Collaborator

sunli829 commented Jul 4, 2022

Thanks! 🙂

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.

None yet

2 participants