include alias even if we don't need it

This commit is contained in:
Ben Kraft
2021-04-15 11:36:46 -07:00
parent e597cac74c
commit 136ac7729f
5 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -8,11 +8,11 @@ import (
)
type QueryWithAliasResponse struct {
User QueryWithAliasUser
User QueryWithAliasUser `json:"User"`
}
type QueryWithAliasUser struct {
ID mypkg.ID
ID mypkg.ID `json:"ID"`
}
func QueryWithAlias(
+2 -2
View File
@@ -12,8 +12,8 @@ type QueryWithDoubleAliasResponse struct {
}
type QueryWithDoubleAliasUser struct {
ID mypkg.ID
AlsoID mypkg.ID
ID mypkg.ID `json:"ID"`
AlsoID mypkg.ID `json:"AlsoID"`
}
func QueryWithDoubleAlias(
+2 -2
View File
@@ -22,8 +22,8 @@ type UsesEnumTwiceQueryOtherUser struct {
}
type UsesEnumTwiceQueryResponse struct {
Me UsesEnumTwiceQueryMeUser
OtherUser UsesEnumTwiceQueryOtherUser
Me UsesEnumTwiceQueryMeUser `json:"Me"`
OtherUser UsesEnumTwiceQueryOtherUser `json:"OtherUser"`
}
func UsesEnumTwiceQuery(