We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c489066 + 2af04e0 commit 0d9db20Copy full SHA for 0d9db20
src/generator.ts
@@ -331,14 +331,13 @@ export class GolangGenerator {
331
}
332
w.push('struct {')
333
} else {
334
- w.push(`string \`json:"${name}"\``)
+ w.push(`string \`json:"${field.name.value}"\``)
335
336
l.push(w.join(''))
337
},
338
leave: field => {
339
if (field.selectionSet) {
340
- const name = this.formatName(field.name.value)
341
- l.push(`} \`json:"${name}"\``)
+ l.push(`} \`json:"${field.name.value}"\``)
342
343
344
0 commit comments