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

[release-2.x] fix converting introspection to SDL #4316

Merged
merged 2 commits into from
Aug 4, 2022

Conversation

martinbonnin
Copy link
Contributor

The 2.x code was trying to re-encode something that was already GraphQL resulting in extra quotes

@netlify
Copy link

netlify bot commented Aug 3, 2022

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit 3ac95ec
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/62eb88b3893a2a0008c6b41d

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

file.sink().buffer().use {
toSDL(it)
toSDL(it, legacyDefaultValues)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not great but at this point, I'm not sure how many wrongly encoded json are in the wild so I went for the tactical approach of making the least invasive change possible

@martinbonnin martinbonnin requested a review from BoD August 4, 2022 09:48
@martinbonnin martinbonnin merged commit 66cd446 into release-2.x Aug 4, 2022
@martinbonnin martinbonnin deleted the fix-writing-sdl-schemas branch August 4, 2022 10:12
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.

2 participants