Skip to content

Conversation

@martinbonnin
Copy link
Contributor

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

@martinbonnin martinbonnin requested review from BoD and sav007 as code owners August 3, 2022 22:20
@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.

👍

fun IntrospectionSchema.toSDL(file: File, legacyDefaultValues: Boolean) {
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.

3 participants