You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code generated when using the operationIdentifiersPath output option which contains String values with escaped quotes in in the associated operation id JSON map file does not correctly escape the quotes in the generated code; which consequently, causes the generated code to fail compilation.
Versions
Please fill in the versions you're currently using:
apollo-ios SDK version: 1.0.3
Xcode version: 14.0.1
Swift version: 5.7
Package manager: SPM
Steps to reproduce
Generate code for an operation which contains a string literal value, like "query Sections($id: String!, platform: \"ios\")"
Add generated code to project
Attempt to build project
Observe compiler error; generated code will contain String with non-escaped quotes like "query Sections($id: String!, platform: "ios")"
The text was updated successfully, but these errors were encountered:
Looking into this it appears it's only an issue when using QueryStringLiteralFormat.singleLine as the options.queryStringLiteralFormat value. QueryStringLiteralFormat.multiline works as expected because inner quotes are not a problem with multiline string literals in Swift.
Seems like an easy fix though, should have it sorted soon.
Bug report
Code generated when using the
operationIdentifiersPath
output option which contains String values with escaped quotes in in the associated operation id JSON map file does not correctly escape the quotes in the generated code; which consequently, causes the generated code to fail compilation.Versions
Please fill in the versions you're currently using:
apollo-ios
SDK version: 1.0.3Steps to reproduce
"query Sections($id: String!, platform: \"ios\")"
"query Sections($id: String!, platform: "ios")"
The text was updated successfully, but these errors were encountered: