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
A recent version of the code generator started adding comments to the fields, this is great!
However, if the comment contained a blank line, the generator will add a single space at the end of that line. This is probably because every line is indented by a single space.
This leads to the following warnings when adding the file with git:
typeFoo {
""" This is the first line of the documentation, it will be followed by an empty line. Here is the last line, there is an empty line in between. """bar: String
}
Describe the bug
A recent version of the code generator started adding comments to the fields, this is great!
However, if the comment contained a blank line, the generator will add a single space at the end of that line. This is probably because every line is indented by a single space.
This leads to the following warnings when adding the file with git:
To Reproduce
Steps to reproduce the behavior:
codegen.yml
config file:Expected behavior
I expected there to not be a trailing space on those lines.
Environment:
@graphql-codegen/...
:"@graphql-codegen/cli": "^1.13.3",
"@graphql-codegen/typescript": "^1.13.3",
"@graphql-codegen/typescript-resolvers": "^1.13.3",
Additional context
n/a
The text was updated successfully, but these errors were encountered: