Avoid capitalized error strings in generated code (#162)

Error strings should follow established guidelines
to ensure good composability and uniformity.
A mention of this particular guideline can be found
in Go Code Review Comments:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
This commit is contained in:
Adam Babik
2022-01-13 11:01:33 -08:00
committed by GitHub
parent f0c2ac17a9
commit 9fbb6b87aa
15 changed files with 117 additions and 117 deletions
@@ -87,10 +87,10 @@ func __unmarshalComplexInlineFragmentsConflictingStuffContent(b []byte, v *Compl
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsConflictingStuffContent: "%v"`, tn.TypeName)
`unexpected concrete type for ComplexInlineFragmentsConflictingStuffContent: "%v"`, tn.TypeName)
}
}
@@ -126,7 +126,7 @@ func __marshalComplexInlineFragmentsConflictingStuffContent(v *ComplexInlineFrag
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsConflictingStuffContent: "%T"`, v)
`unexpected concrete type for ComplexInlineFragmentsConflictingStuffContent: "%T"`, v)
}
}
@@ -221,10 +221,10 @@ func __unmarshalComplexInlineFragmentsNestedStuffContent(b []byte, v *ComplexInl
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsNestedStuffContent: "%v"`, tn.TypeName)
`unexpected concrete type for ComplexInlineFragmentsNestedStuffContent: "%v"`, tn.TypeName)
}
}
@@ -264,7 +264,7 @@ func __marshalComplexInlineFragmentsNestedStuffContent(v *ComplexInlineFragments
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsNestedStuffContent: "%T"`, v)
`unexpected concrete type for ComplexInlineFragmentsNestedStuffContent: "%T"`, v)
}
}
@@ -547,10 +547,10 @@ func __unmarshalComplexInlineFragmentsNestedStuffTopicChildrenArticleParentConte
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopicChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopicChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -586,7 +586,7 @@ func __marshalComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContent
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopicChildrenContent: "%T"`, v)
`unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopicChildrenContent: "%T"`, v)
}
}
@@ -704,10 +704,10 @@ func __unmarshalComplexInlineFragmentsNestedStuffTopicChildrenContent(b []byte,
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -743,7 +743,7 @@ func __marshalComplexInlineFragmentsNestedStuffTopicChildrenContent(v *ComplexIn
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenContent: "%T"`, v)
`unexpected concrete type for ComplexInlineFragmentsNestedStuffTopicChildrenContent: "%T"`, v)
}
}
@@ -856,10 +856,10 @@ func __unmarshalComplexInlineFragmentsRandomItemContent(b []byte, v *ComplexInli
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsRandomItemContent: "%v"`, tn.TypeName)
`unexpected concrete type for ComplexInlineFragmentsRandomItemContent: "%v"`, tn.TypeName)
}
}
@@ -895,7 +895,7 @@ func __marshalComplexInlineFragmentsRandomItemContent(v *ComplexInlineFragmentsR
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsRandomItemContent: "%T"`, v)
`unexpected concrete type for ComplexInlineFragmentsRandomItemContent: "%T"`, v)
}
}
@@ -1034,10 +1034,10 @@ func __unmarshalComplexInlineFragmentsRepeatedStuffContent(b []byte, v *ComplexI
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsRepeatedStuffContent: "%v"`, tn.TypeName)
`unexpected concrete type for ComplexInlineFragmentsRepeatedStuffContent: "%v"`, tn.TypeName)
}
}
@@ -1073,7 +1073,7 @@ func __marshalComplexInlineFragmentsRepeatedStuffContent(v *ComplexInlineFragmen
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ComplexInlineFragmentsRepeatedStuffContent: "%T"`, v)
`unexpected concrete type for ComplexInlineFragmentsRepeatedStuffContent: "%T"`, v)
}
}
@@ -159,10 +159,10 @@ func __unmarshalContentFields(b []byte, v *ContentFields) error {
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ContentFields: "%v"`, tn.TypeName)
`unexpected concrete type for ContentFields: "%v"`, tn.TypeName)
}
}
@@ -198,7 +198,7 @@ func __marshalContentFields(v *ContentFields) ([]byte, error) {
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ContentFields: "%T"`, v)
`unexpected concrete type for ContentFields: "%T"`, v)
}
}
@@ -495,10 +495,10 @@ func __unmarshalInnerQueryFragmentOtherLeafLeafContent(b []byte, v *InnerQueryFr
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing LeafContent.__typename")
"response was missing LeafContent.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InnerQueryFragmentOtherLeafLeafContent: "%v"`, tn.TypeName)
`unexpected concrete type for InnerQueryFragmentOtherLeafLeafContent: "%v"`, tn.TypeName)
}
}
@@ -534,7 +534,7 @@ func __marshalInnerQueryFragmentOtherLeafLeafContent(v *InnerQueryFragmentOtherL
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InnerQueryFragmentOtherLeafLeafContent: "%T"`, v)
`unexpected concrete type for InnerQueryFragmentOtherLeafLeafContent: "%T"`, v)
}
}
@@ -752,10 +752,10 @@ func __unmarshalInnerQueryFragmentRandomItemContent(b []byte, v *InnerQueryFragm
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InnerQueryFragmentRandomItemContent: "%v"`, tn.TypeName)
`unexpected concrete type for InnerQueryFragmentRandomItemContent: "%v"`, tn.TypeName)
}
}
@@ -803,7 +803,7 @@ func __marshalInnerQueryFragmentRandomItemContent(v *InnerQueryFragmentRandomIte
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InnerQueryFragmentRandomItemContent: "%T"`, v)
`unexpected concrete type for InnerQueryFragmentRandomItemContent: "%T"`, v)
}
}
@@ -1081,10 +1081,10 @@ func __unmarshalInnerQueryFragmentRandomLeafLeafContent(b []byte, v *InnerQueryF
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing LeafContent.__typename")
"response was missing LeafContent.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InnerQueryFragmentRandomLeafLeafContent: "%v"`, tn.TypeName)
`unexpected concrete type for InnerQueryFragmentRandomLeafLeafContent: "%v"`, tn.TypeName)
}
}
@@ -1120,7 +1120,7 @@ func __marshalInnerQueryFragmentRandomLeafLeafContent(v *InnerQueryFragmentRando
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InnerQueryFragmentRandomLeafLeafContent: "%T"`, v)
`unexpected concrete type for InnerQueryFragmentRandomLeafLeafContent: "%T"`, v)
}
}
@@ -1403,10 +1403,10 @@ func __unmarshalMoreVideoFieldsParentTopicChildrenContent(b []byte, v *MoreVideo
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for MoreVideoFieldsParentTopicChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for MoreVideoFieldsParentTopicChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -1446,7 +1446,7 @@ func __marshalMoreVideoFieldsParentTopicChildrenContent(v *MoreVideoFieldsParent
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for MoreVideoFieldsParentTopicChildrenContent: "%T"`, v)
`unexpected concrete type for MoreVideoFieldsParentTopicChildrenContent: "%T"`, v)
}
}
@@ -69,10 +69,10 @@ func __unmarshalContentFields(b []byte, v *ContentFields) error {
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for ContentFields: "%v"`, tn.TypeName)
`unexpected concrete type for ContentFields: "%v"`, tn.TypeName)
}
}
@@ -108,7 +108,7 @@ func __marshalContentFields(v *ContentFields) ([]byte, error) {
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for ContentFields: "%T"`, v)
`unexpected concrete type for ContentFields: "%T"`, v)
}
}
@@ -195,10 +195,10 @@ func __unmarshalInterfaceListFieldRootTopicChildrenContent(b []byte, v *Interfac
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceListFieldRootTopicChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceListFieldRootTopicChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -234,7 +234,7 @@ func __marshalInterfaceListFieldRootTopicChildrenContent(v *InterfaceListFieldRo
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceListFieldRootTopicChildrenContent: "%T"`, v)
`unexpected concrete type for InterfaceListFieldRootTopicChildrenContent: "%T"`, v)
}
}
@@ -443,10 +443,10 @@ func __unmarshalInterfaceListFieldWithPointerTopicChildrenContent(b []byte, v *I
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceListFieldWithPointerTopicChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceListFieldWithPointerTopicChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -482,7 +482,7 @@ func __marshalInterfaceListFieldWithPointerTopicChildrenContent(v *InterfaceList
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceListFieldWithPointerTopicChildrenContent: "%T"`, v)
`unexpected concrete type for InterfaceListFieldWithPointerTopicChildrenContent: "%T"`, v)
}
}
@@ -64,10 +64,10 @@ func __unmarshalInterfaceListOfListOfListsFieldListOfListsOfListsOfContent(b []b
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceListOfListOfListsFieldListOfListsOfListsOfContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceListOfListOfListsFieldListOfListsOfListsOfContent: "%v"`, tn.TypeName)
}
}
@@ -103,7 +103,7 @@ func __marshalInterfaceListOfListOfListsFieldListOfListsOfListsOfContent(v *Inte
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceListOfListOfListsFieldListOfListsOfListsOfContent: "%T"`, v)
`unexpected concrete type for InterfaceListOfListOfListsFieldListOfListsOfListsOfContent: "%T"`, v)
}
}
@@ -429,10 +429,10 @@ func __unmarshalInterfaceListOfListOfListsFieldWithPointerContent(b []byte, v *I
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceListOfListOfListsFieldWithPointerContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceListOfListOfListsFieldWithPointerContent: "%v"`, tn.TypeName)
}
}
@@ -468,7 +468,7 @@ func __marshalInterfaceListOfListOfListsFieldWithPointerContent(v *InterfaceList
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceListOfListOfListsFieldWithPointerContent: "%T"`, v)
`unexpected concrete type for InterfaceListOfListOfListsFieldWithPointerContent: "%T"`, v)
}
}
@@ -184,10 +184,10 @@ func __unmarshalInterfaceNestingRootTopicChildrenContent(b []byte, v *InterfaceN
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceNestingRootTopicChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceNestingRootTopicChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -223,7 +223,7 @@ func __marshalInterfaceNestingRootTopicChildrenContent(v *InterfaceNestingRootTo
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceNestingRootTopicChildrenContent: "%T"`, v)
`unexpected concrete type for InterfaceNestingRootTopicChildrenContent: "%T"`, v)
}
}
@@ -389,10 +389,10 @@ func __unmarshalInterfaceNestingRootTopicChildrenContentParentTopicChildrenConte
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceNestingRootTopicChildrenContentParentTopicChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceNestingRootTopicChildrenContentParentTopicChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -428,7 +428,7 @@ func __marshalInterfaceNestingRootTopicChildrenContentParentTopicChildrenContent
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceNestingRootTopicChildrenContentParentTopicChildrenContent: "%T"`, v)
`unexpected concrete type for InterfaceNestingRootTopicChildrenContentParentTopicChildrenContent: "%T"`, v)
}
}
@@ -81,10 +81,10 @@ func __unmarshalInterfaceNoFragmentsQueryRandomItemContent(b []byte, v *Interfac
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceNoFragmentsQueryRandomItemContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceNoFragmentsQueryRandomItemContent: "%v"`, tn.TypeName)
}
}
@@ -120,7 +120,7 @@ func __marshalInterfaceNoFragmentsQueryRandomItemContent(v *InterfaceNoFragments
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceNoFragmentsQueryRandomItemContent: "%T"`, v)
`unexpected concrete type for InterfaceNoFragmentsQueryRandomItemContent: "%T"`, v)
}
}
@@ -231,10 +231,10 @@ func __unmarshalInterfaceNoFragmentsQueryRandomItemWithTypeNameContent(b []byte,
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceNoFragmentsQueryRandomItemWithTypeNameContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceNoFragmentsQueryRandomItemWithTypeNameContent: "%v"`, tn.TypeName)
}
}
@@ -270,7 +270,7 @@ func __marshalInterfaceNoFragmentsQueryRandomItemWithTypeNameContent(v *Interfac
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceNoFragmentsQueryRandomItemWithTypeNameContent: "%T"`, v)
`unexpected concrete type for InterfaceNoFragmentsQueryRandomItemWithTypeNameContent: "%T"`, v)
}
}
@@ -549,10 +549,10 @@ func __unmarshalInterfaceNoFragmentsQueryWithPointerContent(b []byte, v *Interfa
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for InterfaceNoFragmentsQueryWithPointerContent: "%v"`, tn.TypeName)
`unexpected concrete type for InterfaceNoFragmentsQueryWithPointerContent: "%v"`, tn.TypeName)
}
}
@@ -588,7 +588,7 @@ func __marshalInterfaceNoFragmentsQueryWithPointerContent(v *InterfaceNoFragment
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for InterfaceNoFragmentsQueryWithPointerContent: "%T"`, v)
`unexpected concrete type for InterfaceNoFragmentsQueryWithPointerContent: "%T"`, v)
}
}
@@ -85,10 +85,10 @@ func __unmarshalSimpleInlineFragmentRandomItemContent(b []byte, v *SimpleInlineF
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for SimpleInlineFragmentRandomItemContent: "%v"`, tn.TypeName)
`unexpected concrete type for SimpleInlineFragmentRandomItemContent: "%v"`, tn.TypeName)
}
}
@@ -124,7 +124,7 @@ func __marshalSimpleInlineFragmentRandomItemContent(v *SimpleInlineFragmentRando
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for SimpleInlineFragmentRandomItemContent: "%T"`, v)
`unexpected concrete type for SimpleInlineFragmentRandomItemContent: "%T"`, v)
}
}
@@ -81,10 +81,10 @@ func __unmarshalSimpleNamedFragmentRandomItemContent(b []byte, v *SimpleNamedFra
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for SimpleNamedFragmentRandomItemContent: "%v"`, tn.TypeName)
`unexpected concrete type for SimpleNamedFragmentRandomItemContent: "%v"`, tn.TypeName)
}
}
@@ -124,7 +124,7 @@ func __marshalSimpleNamedFragmentRandomItemContent(v *SimpleNamedFragmentRandomI
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for SimpleNamedFragmentRandomItemContent: "%T"`, v)
`unexpected concrete type for SimpleNamedFragmentRandomItemContent: "%T"`, v)
}
}
@@ -282,10 +282,10 @@ func __unmarshalSimpleNamedFragmentRandomLeafLeafContent(b []byte, v *SimpleName
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing LeafContent.__typename")
"response was missing LeafContent.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for SimpleNamedFragmentRandomLeafLeafContent: "%v"`, tn.TypeName)
`unexpected concrete type for SimpleNamedFragmentRandomLeafLeafContent: "%v"`, tn.TypeName)
}
}
@@ -317,7 +317,7 @@ func __marshalSimpleNamedFragmentRandomLeafLeafContent(v *SimpleNamedFragmentRan
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for SimpleNamedFragmentRandomLeafLeafContent: "%T"`, v)
`unexpected concrete type for SimpleNamedFragmentRandomLeafLeafContent: "%T"`, v)
}
}
@@ -268,10 +268,10 @@ func __unmarshalStructOptionRootTopicChildrenContentParentTopicInterfaceChildren
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for StructOptionRootTopicChildrenContentParentTopicInterfaceChildrenContent: "%v"`, tn.TypeName)
`unexpected concrete type for StructOptionRootTopicChildrenContentParentTopicInterfaceChildrenContent: "%v"`, tn.TypeName)
}
}
@@ -311,7 +311,7 @@ func __marshalStructOptionRootTopicChildrenContentParentTopicInterfaceChildrenCo
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for StructOptionRootTopicChildrenContentParentTopicInterfaceChildrenContent: "%T"`, v)
`unexpected concrete type for StructOptionRootTopicChildrenContentParentTopicInterfaceChildrenContent: "%T"`, v)
}
}
@@ -61,10 +61,10 @@ func __unmarshalItem(b []byte, v *Item) error {
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing Content.__typename")
"response was missing Content.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for Item: "%v"`, tn.TypeName)
`unexpected concrete type for Item: "%v"`, tn.TypeName)
}
}
@@ -100,7 +100,7 @@ func __marshalItem(v *Item) ([]byte, error) {
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for Item: "%T"`, v)
`unexpected concrete type for Item: "%T"`, v)
}
}
@@ -58,10 +58,10 @@ func __unmarshalUnionNoFragmentsQueryRandomLeafLeafContent(b []byte, v *UnionNoF
return json.Unmarshal(b, *v)
case "":
return fmt.Errorf(
"Response was missing LeafContent.__typename")
"response was missing LeafContent.__typename")
default:
return fmt.Errorf(
`Unexpected concrete type for UnionNoFragmentsQueryRandomLeafLeafContent: "%v"`, tn.TypeName)
`unexpected concrete type for UnionNoFragmentsQueryRandomLeafLeafContent: "%v"`, tn.TypeName)
}
}
@@ -89,7 +89,7 @@ func __marshalUnionNoFragmentsQueryRandomLeafLeafContent(v *UnionNoFragmentsQuer
return []byte("null"), nil
default:
return nil, fmt.Errorf(
`Unexpected concrete type for UnionNoFragmentsQueryRandomLeafLeafContent: "%T"`, v)
`unexpected concrete type for UnionNoFragmentsQueryRandomLeafLeafContent: "%T"`, v)
}
}