[🔥AUDIT🔥] Fix snapshots from changes to __typename error (#72)
🖍 _This is an audit!_ 🖍 ## Summary: These got broken by the merge. ## Test plan: make check Author: benjaminjkraft Auditors: aberkan, csilvers, dnerdy, MiguelCastillo Required Reviewers: Approved by: Checks: ⌛ Test (1.17), ⌛ Test (1.16), ⌛ Test (1.15), ⌛ Test (1.14), ⌛ Test (1.13), ⌛ Lint, ⌛ Test (1.17), ⌛ Test (1.16), ⌛ Test (1.15), ⌛ Test (1.14), ⌛ Test (1.13), ⌛ Lint Pull request URL: https://github.com/Khan/genqlient/pull/72
This commit is contained in:
@@ -48,7 +48,8 @@ func (v *queryWithFragmentsBeingsAnimal) UnmarshalJSON(b []byte) error {
|
||||
err = __unmarshalqueryWithFragmentsBeingsOwnerBeing(
|
||||
target, raw)
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf(
|
||||
"Unable to unmarshal queryWithFragmentsBeingsAnimal.Owner: %w", err)
|
||||
}
|
||||
}
|
||||
return nil
|
||||
@@ -115,6 +116,9 @@ func __unmarshalqueryWithFragmentsBeingsBeing(v *queryWithFragmentsBeingsBeing,
|
||||
case "Animal":
|
||||
*v = new(queryWithFragmentsBeingsAnimal)
|
||||
return json.Unmarshal(m, *v)
|
||||
case "":
|
||||
return fmt.Errorf(
|
||||
"Response was missing Being.__typename")
|
||||
default:
|
||||
return fmt.Errorf(
|
||||
`Unexpected concrete type for queryWithFragmentsBeingsBeing: "%v"`, tn.TypeName)
|
||||
@@ -196,6 +200,9 @@ func __unmarshalqueryWithFragmentsBeingsOwnerBeing(v *queryWithFragmentsBeingsOw
|
||||
case "Animal":
|
||||
*v = new(queryWithFragmentsBeingsOwnerAnimal)
|
||||
return json.Unmarshal(m, *v)
|
||||
case "":
|
||||
return fmt.Errorf(
|
||||
"Response was missing Being.__typename")
|
||||
default:
|
||||
return fmt.Errorf(
|
||||
`Unexpected concrete type for queryWithFragmentsBeingsOwnerBeing: "%v"`, tn.TypeName)
|
||||
@@ -250,7 +257,8 @@ func (v *queryWithFragmentsResponse) UnmarshalJSON(b []byte) error {
|
||||
err = __unmarshalqueryWithFragmentsBeingsBeing(
|
||||
target, raw)
|
||||
if err != nil {
|
||||
return err
|
||||
return fmt.Errorf(
|
||||
"Unable to unmarshal queryWithFragmentsResponse.Beings: %w", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user