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
Describe the bug
A description containing words like "720p" throws:
Error: Unexpected token p at 403:23
upon generating Swift via swift-graphql.
To Reproduce
Add a documented type to a schema:
"""
Resolution
Example: Medium is 720p
"""
enum Resolution {
LOW
MEDIUM
HIGH
}
Start GraphQL server, then confirm description integrity:
curl -X POST -H"Content-Type: application/json" -d '{"query":"query{__type(name:\"Resolution\") {name description}}"}' http://localhost:8080/query
Resulting in:
{"data":{"__type":{"name":"Resolution","description":"Resolution\nExample: Medium is 720p"}}}
Generate Swift:
swift-graphql http://localhost:8080/query
Expected behavior
Swift output.
The text was updated successfully, but these errors were encountered:
idiomatic
changed the title
number-prefixed words in descriptions trigger generator error
number-prefixed words in multi-line descriptions trigger generator error
Nov 12, 2021
Describe the bug
A description containing words like "720p" throws:
upon generating Swift via swift-graphql.
To Reproduce
Add a documented type to a schema:
Start GraphQL server, then confirm description integrity:
Resulting in:
Generate Swift:
Expected behavior
Swift output.
The text was updated successfully, but these errors were encountered: