fix incorrect enum-value type names for enums used as inputs
luckily webapp is now a much more complete test suite and genqlient's own tests, so it caught this!
This commit is contained in:
+1
-1
@@ -372,7 +372,7 @@ func (builder *typeBuilder) writeTypedef(
|
||||
builder.WriteString("const (\n")
|
||||
for _, val := range typedef.EnumValues {
|
||||
fmt.Fprintf(builder, "%s %s = \"%s\"\n",
|
||||
typeNamePrefix+goConstName(val.Name),
|
||||
typeName+goConstName(val.Name),
|
||||
typeName, val.Name)
|
||||
}
|
||||
builder.WriteString(")\n")
|
||||
|
||||
Reference in New Issue
Block a user