Fix incorrectly formatted error string (#213)

Follow best practices from Go Review Comments:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings

Closes: #202
This commit is contained in:
Lucas Bremgartner
2022-08-04 23:57:45 +02:00
committed by GitHub
parent 046f531314
commit c0510ff54a
24 changed files with 151 additions and 151 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func (v *{{.GoName}}) __premarshalJSON() (*__premarshal{{.GoName}}, error) {
{{if not $field.GoType.IsPointer}}&{{end}}src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal {{$.GoName}}.{{$field.Selector}}: %w", err)
"unable to marshal {{$.GoName}}.{{$field.Selector}}: %w", err)
}
{{if $field.GoType.IsPointer -}}
}{{/* end if src != nil */}}
@@ -313,7 +313,7 @@ func (v *ComplexInlineFragmentsNestedStuffTopic) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ComplexInlineFragmentsNestedStuffTopic.Children: %w", err)
"unable to unmarshal ComplexInlineFragmentsNestedStuffTopic.Children: %w", err)
}
}
}
@@ -353,7 +353,7 @@ func (v *ComplexInlineFragmentsNestedStuffTopic) __premarshalJSON() (*__premarsh
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexInlineFragmentsNestedStuffTopic.Children: %w", err)
"unable to marshal ComplexInlineFragmentsNestedStuffTopic.Children: %w", err)
}
}
}
@@ -426,7 +426,7 @@ func (v *ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParen
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopic.Children: %w", err)
"unable to unmarshal ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopic.Children: %w", err)
}
}
}
@@ -463,7 +463,7 @@ func (v *ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParen
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopic.Children: %w", err)
"unable to marshal ComplexInlineFragmentsNestedStuffTopicChildrenArticleParentContentParentTopic.Children: %w", err)
}
}
}
@@ -1202,7 +1202,7 @@ func (v *ComplexInlineFragmentsResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ComplexInlineFragmentsResponse.RandomItem: %w", err)
"unable to unmarshal ComplexInlineFragmentsResponse.RandomItem: %w", err)
}
}
}
@@ -1215,7 +1215,7 @@ func (v *ComplexInlineFragmentsResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ComplexInlineFragmentsResponse.RepeatedStuff: %w", err)
"unable to unmarshal ComplexInlineFragmentsResponse.RepeatedStuff: %w", err)
}
}
}
@@ -1228,7 +1228,7 @@ func (v *ComplexInlineFragmentsResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ComplexInlineFragmentsResponse.ConflictingStuff: %w", err)
"unable to unmarshal ComplexInlineFragmentsResponse.ConflictingStuff: %w", err)
}
}
}
@@ -1241,7 +1241,7 @@ func (v *ComplexInlineFragmentsResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ComplexInlineFragmentsResponse.NestedStuff: %w", err)
"unable to unmarshal ComplexInlineFragmentsResponse.NestedStuff: %w", err)
}
}
}
@@ -1281,7 +1281,7 @@ func (v *ComplexInlineFragmentsResponse) __premarshalJSON() (*__premarshalComple
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexInlineFragmentsResponse.RandomItem: %w", err)
"unable to marshal ComplexInlineFragmentsResponse.RandomItem: %w", err)
}
}
{
@@ -1293,7 +1293,7 @@ func (v *ComplexInlineFragmentsResponse) __premarshalJSON() (*__premarshalComple
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexInlineFragmentsResponse.RepeatedStuff: %w", err)
"unable to marshal ComplexInlineFragmentsResponse.RepeatedStuff: %w", err)
}
}
{
@@ -1305,7 +1305,7 @@ func (v *ComplexInlineFragmentsResponse) __premarshalJSON() (*__premarshalComple
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexInlineFragmentsResponse.ConflictingStuff: %w", err)
"unable to marshal ComplexInlineFragmentsResponse.ConflictingStuff: %w", err)
}
}
{
@@ -1317,7 +1317,7 @@ func (v *ComplexInlineFragmentsResponse) __premarshalJSON() (*__premarshalComple
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexInlineFragmentsResponse.NestedStuff: %w", err)
"unable to marshal ComplexInlineFragmentsResponse.NestedStuff: %w", err)
}
}
return &retval, nil
@@ -83,7 +83,7 @@ func (v *ComplexNamedFragmentsResponse) __premarshalJSON() (*__premarshalComplex
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexNamedFragmentsResponse.QueryFragment.InnerQueryFragment.RandomItem: %w", err)
"unable to marshal ComplexNamedFragmentsResponse.QueryFragment.InnerQueryFragment.RandomItem: %w", err)
}
}
{
@@ -95,7 +95,7 @@ func (v *ComplexNamedFragmentsResponse) __premarshalJSON() (*__premarshalComplex
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexNamedFragmentsResponse.QueryFragment.InnerQueryFragment.RandomLeaf: %w", err)
"unable to marshal ComplexNamedFragmentsResponse.QueryFragment.InnerQueryFragment.RandomLeaf: %w", err)
}
}
{
@@ -107,7 +107,7 @@ func (v *ComplexNamedFragmentsResponse) __premarshalJSON() (*__premarshalComplex
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ComplexNamedFragmentsResponse.QueryFragment.InnerQueryFragment.OtherLeaf: %w", err)
"unable to marshal ComplexNamedFragmentsResponse.QueryFragment.InnerQueryFragment.OtherLeaf: %w", err)
}
}
return &retval, nil
@@ -298,7 +298,7 @@ func (v *InnerQueryFragment) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InnerQueryFragment.RandomItem: %w", err)
"unable to unmarshal InnerQueryFragment.RandomItem: %w", err)
}
}
}
@@ -311,7 +311,7 @@ func (v *InnerQueryFragment) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InnerQueryFragment.RandomLeaf: %w", err)
"unable to unmarshal InnerQueryFragment.RandomLeaf: %w", err)
}
}
}
@@ -324,7 +324,7 @@ func (v *InnerQueryFragment) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InnerQueryFragment.OtherLeaf: %w", err)
"unable to unmarshal InnerQueryFragment.OtherLeaf: %w", err)
}
}
}
@@ -359,7 +359,7 @@ func (v *InnerQueryFragment) __premarshalJSON() (*__premarshalInnerQueryFragment
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InnerQueryFragment.RandomItem: %w", err)
"unable to marshal InnerQueryFragment.RandomItem: %w", err)
}
}
{
@@ -371,7 +371,7 @@ func (v *InnerQueryFragment) __premarshalJSON() (*__premarshalInnerQueryFragment
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InnerQueryFragment.RandomLeaf: %w", err)
"unable to marshal InnerQueryFragment.RandomLeaf: %w", err)
}
}
{
@@ -383,7 +383,7 @@ func (v *InnerQueryFragment) __premarshalJSON() (*__premarshalInnerQueryFragment
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InnerQueryFragment.OtherLeaf: %w", err)
"unable to marshal InnerQueryFragment.OtherLeaf: %w", err)
}
}
return &retval, nil
@@ -1298,7 +1298,7 @@ func (v *MoreVideoFieldsParentTopic) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal MoreVideoFieldsParentTopic.Children: %w", err)
"unable to unmarshal MoreVideoFieldsParentTopic.Children: %w", err)
}
}
}
@@ -1341,7 +1341,7 @@ func (v *MoreVideoFieldsParentTopic) __premarshalJSON() (*__premarshalMoreVideoF
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal MoreVideoFieldsParentTopic.Children: %w", err)
"unable to marshal MoreVideoFieldsParentTopic.Children: %w", err)
}
}
}
@@ -1619,7 +1619,7 @@ func (v *QueryFragment) __premarshalJSON() (*__premarshalQueryFragment, error) {
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal QueryFragment.InnerQueryFragment.RandomItem: %w", err)
"unable to marshal QueryFragment.InnerQueryFragment.RandomItem: %w", err)
}
}
{
@@ -1631,7 +1631,7 @@ func (v *QueryFragment) __premarshalJSON() (*__premarshalQueryFragment, error) {
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal QueryFragment.InnerQueryFragment.RandomLeaf: %w", err)
"unable to marshal QueryFragment.InnerQueryFragment.RandomLeaf: %w", err)
}
}
{
@@ -1643,7 +1643,7 @@ func (v *QueryFragment) __premarshalJSON() (*__premarshalQueryFragment, error) {
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal QueryFragment.InnerQueryFragment.OtherLeaf: %w", err)
"unable to marshal QueryFragment.InnerQueryFragment.OtherLeaf: %w", err)
}
}
return &retval, nil
@@ -153,7 +153,7 @@ func (v *ContentFieldsArticle) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ContentFieldsArticle.Next: %w", err)
"unable to unmarshal ContentFieldsArticle.Next: %w", err)
}
}
}
@@ -171,7 +171,7 @@ func (v *ContentFieldsArticle) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ContentFieldsArticle.Related: %w", err)
"unable to unmarshal ContentFieldsArticle.Related: %w", err)
}
}
}
@@ -205,7 +205,7 @@ func (v *ContentFieldsArticle) __premarshalJSON() (*__premarshalContentFieldsArt
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ContentFieldsArticle.Next: %w", err)
"unable to marshal ContentFieldsArticle.Next: %w", err)
}
}
{
@@ -222,7 +222,7 @@ func (v *ContentFieldsArticle) __premarshalJSON() (*__premarshalContentFieldsArt
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ContentFieldsArticle.Related: %w", err)
"unable to marshal ContentFieldsArticle.Related: %w", err)
}
}
}
@@ -533,7 +533,7 @@ func (v *ContentFieldsTopic) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ContentFieldsTopic.Next: %w", err)
"unable to unmarshal ContentFieldsTopic.Next: %w", err)
}
}
}
@@ -551,7 +551,7 @@ func (v *ContentFieldsTopic) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ContentFieldsTopic.Related: %w", err)
"unable to unmarshal ContentFieldsTopic.Related: %w", err)
}
}
}
@@ -585,7 +585,7 @@ func (v *ContentFieldsTopic) __premarshalJSON() (*__premarshalContentFieldsTopic
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ContentFieldsTopic.Next: %w", err)
"unable to marshal ContentFieldsTopic.Next: %w", err)
}
}
{
@@ -602,7 +602,7 @@ func (v *ContentFieldsTopic) __premarshalJSON() (*__premarshalContentFieldsTopic
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ContentFieldsTopic.Related: %w", err)
"unable to marshal ContentFieldsTopic.Related: %w", err)
}
}
}
@@ -651,7 +651,7 @@ func (v *ContentFieldsVideo) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ContentFieldsVideo.Next: %w", err)
"unable to unmarshal ContentFieldsVideo.Next: %w", err)
}
}
}
@@ -669,7 +669,7 @@ func (v *ContentFieldsVideo) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal ContentFieldsVideo.Related: %w", err)
"unable to unmarshal ContentFieldsVideo.Related: %w", err)
}
}
}
@@ -703,7 +703,7 @@ func (v *ContentFieldsVideo) __premarshalJSON() (*__premarshalContentFieldsVideo
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ContentFieldsVideo.Next: %w", err)
"unable to marshal ContentFieldsVideo.Next: %w", err)
}
}
{
@@ -720,7 +720,7 @@ func (v *ContentFieldsVideo) __premarshalJSON() (*__premarshalContentFieldsVideo
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal ContentFieldsVideo.Related: %w", err)
"unable to marshal ContentFieldsVideo.Related: %w", err)
}
}
}
@@ -779,7 +779,7 @@ func (v *CovariantInterfaceImplementationRandomItemArticle) UnmarshalJSON(b []by
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CovariantInterfaceImplementationRandomItemArticle.Next: %w", err)
"unable to unmarshal CovariantInterfaceImplementationRandomItemArticle.Next: %w", err)
}
}
}
@@ -797,7 +797,7 @@ func (v *CovariantInterfaceImplementationRandomItemArticle) UnmarshalJSON(b []by
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CovariantInterfaceImplementationRandomItemArticle.Related: %w", err)
"unable to unmarshal CovariantInterfaceImplementationRandomItemArticle.Related: %w", err)
}
}
}
@@ -837,7 +837,7 @@ func (v *CovariantInterfaceImplementationRandomItemArticle) __premarshalJSON() (
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemArticle.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemArticle.Next: %w", err)
}
}
{
@@ -854,7 +854,7 @@ func (v *CovariantInterfaceImplementationRandomItemArticle) __premarshalJSON() (
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemArticle.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemArticle.Related: %w", err)
}
}
}
@@ -1047,7 +1047,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentNextArticle) __premars
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentNextArticle.ContentFieldsArticle.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentNextArticle.ContentFieldsArticle.Next: %w", err)
}
}
{
@@ -1064,7 +1064,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentNextArticle) __premars
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentNextArticle.ContentFieldsArticle.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentNextArticle.ContentFieldsArticle.Related: %w", err)
}
}
}
@@ -1249,7 +1249,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentNextTopic) __premarsha
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentNextTopic.ContentFieldsTopic.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentNextTopic.ContentFieldsTopic.Next: %w", err)
}
}
{
@@ -1266,7 +1266,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentNextTopic) __premarsha
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentNextTopic.ContentFieldsTopic.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentNextTopic.ContentFieldsTopic.Related: %w", err)
}
}
}
@@ -1348,7 +1348,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentNextVideo) __premarsha
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentNextVideo.ContentFieldsVideo.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentNextVideo.ContentFieldsVideo.Next: %w", err)
}
}
{
@@ -1365,7 +1365,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentNextVideo) __premarsha
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentNextVideo.ContentFieldsVideo.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentNextVideo.ContentFieldsVideo.Related: %w", err)
}
}
}
@@ -1447,7 +1447,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentRelatedArticle) __prem
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedArticle.ContentFieldsArticle.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedArticle.ContentFieldsArticle.Next: %w", err)
}
}
{
@@ -1464,7 +1464,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentRelatedArticle) __prem
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedArticle.ContentFieldsArticle.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedArticle.ContentFieldsArticle.Related: %w", err)
}
}
}
@@ -1649,7 +1649,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentRelatedTopic) __premar
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedTopic.ContentFieldsTopic.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedTopic.ContentFieldsTopic.Next: %w", err)
}
}
{
@@ -1666,7 +1666,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentRelatedTopic) __premar
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedTopic.ContentFieldsTopic.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedTopic.ContentFieldsTopic.Related: %w", err)
}
}
}
@@ -1748,7 +1748,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentRelatedVideo) __premar
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedVideo.ContentFieldsVideo.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedVideo.ContentFieldsVideo.Next: %w", err)
}
}
{
@@ -1765,7 +1765,7 @@ func (v *CovariantInterfaceImplementationRandomItemContentRelatedVideo) __premar
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedVideo.ContentFieldsVideo.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemContentRelatedVideo.ContentFieldsVideo.Related: %w", err)
}
}
}
@@ -1824,7 +1824,7 @@ func (v *CovariantInterfaceImplementationRandomItemTopic) UnmarshalJSON(b []byte
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CovariantInterfaceImplementationRandomItemTopic.Next: %w", err)
"unable to unmarshal CovariantInterfaceImplementationRandomItemTopic.Next: %w", err)
}
}
}
@@ -1842,7 +1842,7 @@ func (v *CovariantInterfaceImplementationRandomItemTopic) UnmarshalJSON(b []byte
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CovariantInterfaceImplementationRandomItemTopic.Related: %w", err)
"unable to unmarshal CovariantInterfaceImplementationRandomItemTopic.Related: %w", err)
}
}
}
@@ -1882,7 +1882,7 @@ func (v *CovariantInterfaceImplementationRandomItemTopic) __premarshalJSON() (*_
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemTopic.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemTopic.Next: %w", err)
}
}
{
@@ -1899,7 +1899,7 @@ func (v *CovariantInterfaceImplementationRandomItemTopic) __premarshalJSON() (*_
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemTopic.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemTopic.Related: %w", err)
}
}
}
@@ -1958,7 +1958,7 @@ func (v *CovariantInterfaceImplementationRandomItemVideo) UnmarshalJSON(b []byte
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CovariantInterfaceImplementationRandomItemVideo.Next: %w", err)
"unable to unmarshal CovariantInterfaceImplementationRandomItemVideo.Next: %w", err)
}
}
}
@@ -1976,7 +1976,7 @@ func (v *CovariantInterfaceImplementationRandomItemVideo) UnmarshalJSON(b []byte
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CovariantInterfaceImplementationRandomItemVideo.Related: %w", err)
"unable to unmarshal CovariantInterfaceImplementationRandomItemVideo.Related: %w", err)
}
}
}
@@ -2016,7 +2016,7 @@ func (v *CovariantInterfaceImplementationRandomItemVideo) __premarshalJSON() (*_
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemVideo.Next: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemVideo.Next: %w", err)
}
}
{
@@ -2033,7 +2033,7 @@ func (v *CovariantInterfaceImplementationRandomItemVideo) __premarshalJSON() (*_
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationRandomItemVideo.Related: %w", err)
"unable to marshal CovariantInterfaceImplementationRandomItemVideo.Related: %w", err)
}
}
}
@@ -2082,7 +2082,7 @@ func (v *CovariantInterfaceImplementationResponse) UnmarshalJSON(b []byte) error
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CovariantInterfaceImplementationResponse.RandomItem: %w", err)
"unable to unmarshal CovariantInterfaceImplementationResponse.RandomItem: %w", err)
}
}
}
@@ -2115,7 +2115,7 @@ func (v *CovariantInterfaceImplementationResponse) __premarshalJSON() (*__premar
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CovariantInterfaceImplementationResponse.RandomItem: %w", err)
"unable to marshal CovariantInterfaceImplementationResponse.RandomItem: %w", err)
}
}
retval.Root = v.Root
@@ -63,7 +63,7 @@ func (v *CustomMarshalUsersBornOnUser) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
"unable to unmarshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
}
}
}
@@ -97,7 +97,7 @@ func (v *CustomMarshalUsersBornOnUser) __premarshalJSON() (*__premarshalCustomMa
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
"unable to marshal CustomMarshalUsersBornOnUser.Birthdate: %w", err)
}
}
return &retval, nil
@@ -137,7 +137,7 @@ func (v *__CustomMarshalInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal __CustomMarshalInput.Date: %w", err)
"unable to unmarshal __CustomMarshalInput.Date: %w", err)
}
}
}
@@ -168,7 +168,7 @@ func (v *__CustomMarshalInput) __premarshalJSON() (*__premarshal__CustomMarshalI
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal __CustomMarshalInput.Date: %w", err)
"unable to marshal __CustomMarshalInput.Date: %w", err)
}
}
return &retval, nil
@@ -79,7 +79,7 @@ func (v *__CustomMarshalSliceInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal __CustomMarshalSliceInput.Datesss: %w", err)
"unable to unmarshal __CustomMarshalSliceInput.Datesss: %w", err)
}
}
}
@@ -111,7 +111,7 @@ func (v *__CustomMarshalSliceInput) UnmarshalJSON(b []byte) error {
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal __CustomMarshalSliceInput.Datesssp: %w", err)
"unable to unmarshal __CustomMarshalSliceInput.Datesssp: %w", err)
}
}
}
@@ -162,7 +162,7 @@ func (v *__CustomMarshalSliceInput) __premarshalJSON() (*__premarshal__CustomMar
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal __CustomMarshalSliceInput.Datesss: %w", err)
"unable to marshal __CustomMarshalSliceInput.Datesss: %w", err)
}
}
}
@@ -193,7 +193,7 @@ func (v *__CustomMarshalSliceInput) __premarshalJSON() (*__premarshal__CustomMar
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal __CustomMarshalSliceInput.Datesssp: %w", err)
"unable to marshal __CustomMarshalSliceInput.Datesssp: %w", err)
}
}
}
@@ -202,7 +202,7 @@ func (v *InnerQueryFragment) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InnerQueryFragment.RandomItem: %w", err)
"unable to unmarshal InnerQueryFragment.RandomItem: %w", err)
}
}
}
@@ -238,7 +238,7 @@ func (v *InnerQueryFragment) __premarshalJSON() (*__premarshalInnerQueryFragment
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InnerQueryFragment.RandomItem: %w", err)
"unable to marshal InnerQueryFragment.RandomItem: %w", err)
}
}
retval.OtherVideo = v.OtherVideo
@@ -114,7 +114,7 @@ func (v *UserQueryInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal UserQueryInput.Birthdate: %w", err)
"unable to unmarshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -163,7 +163,7 @@ func (v *UserQueryInput) __premarshalJSON() (*__premarshalUserQueryInput, error)
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal UserQueryInput.Birthdate: %w", err)
"unable to marshal UserQueryInput.Birthdate: %w", err)
}
}
return &retval, nil
@@ -74,7 +74,7 @@ func (v *InterfaceListFieldRootTopic) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceListFieldRootTopic.Children: %w", err)
"unable to unmarshal InterfaceListFieldRootTopic.Children: %w", err)
}
}
}
@@ -117,7 +117,7 @@ func (v *InterfaceListFieldRootTopic) __premarshalJSON() (*__premarshalInterface
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceListFieldRootTopic.Children: %w", err)
"unable to marshal InterfaceListFieldRootTopic.Children: %w", err)
}
}
}
@@ -322,7 +322,7 @@ func (v *InterfaceListFieldWithPointerTopic) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceListFieldWithPointerTopic.Children: %w", err)
"unable to unmarshal InterfaceListFieldWithPointerTopic.Children: %w", err)
}
}
}
@@ -365,7 +365,7 @@ func (v *InterfaceListFieldWithPointerTopic) __premarshalJSON() (*__premarshalIn
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceListFieldWithPointerTopic.Children: %w", err)
"unable to marshal InterfaceListFieldWithPointerTopic.Children: %w", err)
}
}
}
@@ -234,7 +234,7 @@ func (v *InterfaceListOfListOfListsFieldResponse) UnmarshalJSON(b []byte) error
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceListOfListOfListsFieldResponse.ListOfListsOfListsOfContent: %w", err)
"unable to unmarshal InterfaceListOfListOfListsFieldResponse.ListOfListsOfListsOfContent: %w", err)
}
}
}
@@ -266,7 +266,7 @@ func (v *InterfaceListOfListOfListsFieldResponse) UnmarshalJSON(b []byte) error
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceListOfListOfListsFieldResponse.WithPointer: %w", err)
"unable to unmarshal InterfaceListOfListOfListsFieldResponse.WithPointer: %w", err)
}
}
}
@@ -317,7 +317,7 @@ func (v *InterfaceListOfListOfListsFieldResponse) __premarshalJSON() (*__premars
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceListOfListOfListsFieldResponse.ListOfListsOfListsOfContent: %w", err)
"unable to marshal InterfaceListOfListOfListsFieldResponse.ListOfListsOfListsOfContent: %w", err)
}
}
}
@@ -348,7 +348,7 @@ func (v *InterfaceListOfListOfListsFieldResponse) __premarshalJSON() (*__premars
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceListOfListOfListsFieldResponse.WithPointer: %w", err)
"unable to marshal InterfaceListOfListOfListsFieldResponse.WithPointer: %w", err)
}
}
}
@@ -64,7 +64,7 @@ func (v *InterfaceNestingRootTopic) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceNestingRootTopic.Children: %w", err)
"unable to unmarshal InterfaceNestingRootTopic.Children: %w", err)
}
}
}
@@ -104,7 +104,7 @@ func (v *InterfaceNestingRootTopic) __premarshalJSON() (*__premarshalInterfaceNe
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceNestingRootTopic.Children: %w", err)
"unable to marshal InterfaceNestingRootTopic.Children: %w", err)
}
}
}
@@ -273,7 +273,7 @@ func (v *InterfaceNestingRootTopicChildrenContentParentTopic) UnmarshalJSON(b []
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceNestingRootTopicChildrenContentParentTopic.Children: %w", err)
"unable to unmarshal InterfaceNestingRootTopicChildrenContentParentTopic.Children: %w", err)
}
}
}
@@ -313,7 +313,7 @@ func (v *InterfaceNestingRootTopicChildrenContentParentTopic) __premarshalJSON()
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceNestingRootTopicChildrenContentParentTopic.Children: %w", err)
"unable to marshal InterfaceNestingRootTopicChildrenContentParentTopic.Children: %w", err)
}
}
}
@@ -368,7 +368,7 @@ func (v *InterfaceNoFragmentsQueryResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceNoFragmentsQueryResponse.RandomItem: %w", err)
"unable to unmarshal InterfaceNoFragmentsQueryResponse.RandomItem: %w", err)
}
}
}
@@ -381,7 +381,7 @@ func (v *InterfaceNoFragmentsQueryResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceNoFragmentsQueryResponse.RandomItemWithTypeName: %w", err)
"unable to unmarshal InterfaceNoFragmentsQueryResponse.RandomItemWithTypeName: %w", err)
}
}
}
@@ -395,7 +395,7 @@ func (v *InterfaceNoFragmentsQueryResponse) UnmarshalJSON(b []byte) error {
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal InterfaceNoFragmentsQueryResponse.WithPointer: %w", err)
"unable to unmarshal InterfaceNoFragmentsQueryResponse.WithPointer: %w", err)
}
}
}
@@ -433,7 +433,7 @@ func (v *InterfaceNoFragmentsQueryResponse) __premarshalJSON() (*__premarshalInt
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceNoFragmentsQueryResponse.RandomItem: %w", err)
"unable to marshal InterfaceNoFragmentsQueryResponse.RandomItem: %w", err)
}
}
{
@@ -445,7 +445,7 @@ func (v *InterfaceNoFragmentsQueryResponse) __premarshalJSON() (*__premarshalInt
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceNoFragmentsQueryResponse.RandomItemWithTypeName: %w", err)
"unable to marshal InterfaceNoFragmentsQueryResponse.RandomItemWithTypeName: %w", err)
}
}
{
@@ -458,7 +458,7 @@ func (v *InterfaceNoFragmentsQueryResponse) __premarshalJSON() (*__premarshalInt
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal InterfaceNoFragmentsQueryResponse.WithPointer: %w", err)
"unable to marshal InterfaceNoFragmentsQueryResponse.WithPointer: %w", err)
}
}
}
@@ -75,7 +75,7 @@ func (v *MyInput) UnmarshalJSON(b []byte) error {
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal MyInput.Birthdate: %w", err)
"unable to unmarshal MyInput.Birthdate: %w", err)
}
}
}
@@ -125,7 +125,7 @@ func (v *MyInput) __premarshalJSON() (*__premarshalMyInput, error) {
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal MyInput.Birthdate: %w", err)
"unable to marshal MyInput.Birthdate: %w", err)
}
}
}
@@ -256,7 +256,7 @@ func (v *UserQueryInput) UnmarshalJSON(b []byte) error {
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal UserQueryInput.Birthdate: %w", err)
"unable to unmarshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -306,7 +306,7 @@ func (v *UserQueryInput) __premarshalJSON() (*__premarshalUserQueryInput, error)
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal UserQueryInput.Birthdate: %w", err)
"unable to marshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -140,7 +140,7 @@ func (v *UserQueryInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal UserQueryInput.Birthdate: %w", err)
"unable to unmarshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -189,7 +189,7 @@ func (v *UserQueryInput) __premarshalJSON() (*__premarshalUserQueryInput, error)
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal UserQueryInput.Birthdate: %w", err)
"unable to marshal UserQueryInput.Birthdate: %w", err)
}
}
return &retval, nil
@@ -157,7 +157,7 @@ func (v *UserQueryInput) UnmarshalJSON(b []byte) error {
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal UserQueryInput.Birthdate: %w", err)
"unable to unmarshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -207,7 +207,7 @@ func (v *UserQueryInput) __premarshalJSON() (*__premarshalUserQueryInput, error)
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal UserQueryInput.Birthdate: %w", err)
"unable to marshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -156,7 +156,7 @@ func (v *UserQueryInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal UserQueryInput.Birthdate: %w", err)
"unable to unmarshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -205,7 +205,7 @@ func (v *UserQueryInput) __premarshalJSON() (*__premarshalUserQueryInput, error)
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal UserQueryInput.Birthdate: %w", err)
"unable to marshal UserQueryInput.Birthdate: %w", err)
}
}
return &retval, nil
@@ -202,7 +202,7 @@ func (v *SimpleInlineFragmentResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal SimpleInlineFragmentResponse.RandomItem: %w", err)
"unable to unmarshal SimpleInlineFragmentResponse.RandomItem: %w", err)
}
}
}
@@ -233,7 +233,7 @@ func (v *SimpleInlineFragmentResponse) __premarshalJSON() (*__premarshalSimpleIn
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal SimpleInlineFragmentResponse.RandomItem: %w", err)
"unable to marshal SimpleInlineFragmentResponse.RandomItem: %w", err)
}
}
return &retval, nil
@@ -449,7 +449,7 @@ func (v *SimpleNamedFragmentResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal SimpleNamedFragmentResponse.RandomItem: %w", err)
"unable to unmarshal SimpleNamedFragmentResponse.RandomItem: %w", err)
}
}
}
@@ -462,7 +462,7 @@ func (v *SimpleNamedFragmentResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal SimpleNamedFragmentResponse.RandomLeaf: %w", err)
"unable to unmarshal SimpleNamedFragmentResponse.RandomLeaf: %w", err)
}
}
}
@@ -495,7 +495,7 @@ func (v *SimpleNamedFragmentResponse) __premarshalJSON() (*__premarshalSimpleNam
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal SimpleNamedFragmentResponse.RandomItem: %w", err)
"unable to marshal SimpleNamedFragmentResponse.RandomItem: %w", err)
}
}
{
@@ -507,7 +507,7 @@ func (v *SimpleNamedFragmentResponse) __premarshalJSON() (*__premarshalSimpleNam
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal SimpleNamedFragmentResponse.RandomLeaf: %w", err)
"unable to marshal SimpleNamedFragmentResponse.RandomLeaf: %w", err)
}
}
return &retval, nil
@@ -129,7 +129,7 @@ func (v *StructOptionRootTopicChildrenContentParentTopic) UnmarshalJSON(b []byte
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal StructOptionRootTopicChildrenContentParentTopic.InterfaceChildren: %w", err)
"unable to unmarshal StructOptionRootTopicChildrenContentParentTopic.InterfaceChildren: %w", err)
}
}
}
@@ -172,7 +172,7 @@ func (v *StructOptionRootTopicChildrenContentParentTopic) __premarshalJSON() (*_
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal StructOptionRootTopicChildrenContentParentTopic.InterfaceChildren: %w", err)
"unable to marshal StructOptionRootTopicChildrenContentParentTopic.InterfaceChildren: %w", err)
}
}
}
@@ -203,7 +203,7 @@ func (v *Resp) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal Resp.RandomItem: %w", err)
"unable to unmarshal Resp.RandomItem: %w", err)
}
}
}
@@ -239,7 +239,7 @@ func (v *Resp) __premarshalJSON() (*__premarshalResp, error) {
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal Resp.RandomItem: %w", err)
"unable to marshal Resp.RandomItem: %w", err)
}
}
retval.Users = v.Users
@@ -137,7 +137,7 @@ func (v *UnionNoFragmentsQueryResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal UnionNoFragmentsQueryResponse.RandomLeaf: %w", err)
"unable to unmarshal UnionNoFragmentsQueryResponse.RandomLeaf: %w", err)
}
}
}
@@ -168,7 +168,7 @@ func (v *UnionNoFragmentsQueryResponse) __premarshalJSON() (*__premarshalUnionNo
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal UnionNoFragmentsQueryResponse.RandomLeaf: %w", err)
"unable to marshal UnionNoFragmentsQueryResponse.RandomLeaf: %w", err)
}
}
return &retval, nil
@@ -88,7 +88,7 @@ func (v *UserQueryInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal UserQueryInput.Birthdate: %w", err)
"unable to unmarshal UserQueryInput.Birthdate: %w", err)
}
}
}
@@ -137,7 +137,7 @@ func (v *UserQueryInput) __premarshalJSON() (*__premarshalUserQueryInput, error)
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal UserQueryInput.Birthdate: %w", err)
"unable to marshal UserQueryInput.Birthdate: %w", err)
}
}
return &retval, nil
+1 -1
View File
@@ -139,7 +139,7 @@ func (v *{{.GoName}}) UnmarshalJSON(b []byte) error {
src, {{if $field.GoType.IsPointer}}*{{end}}dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal {{$.GoName}}.{{$field.GoName}}: %w", err)
"unable to unmarshal {{$.GoName}}.{{$field.GoName}}: %w", err)
}
}
{{range $i := intRange $field.GoType.SliceDepth -}}
+31 -31
View File
@@ -54,7 +54,7 @@ func (v *AnimalFields) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal AnimalFields.Owner: %w", err)
"unable to unmarshal AnimalFields.Owner: %w", err)
}
}
}
@@ -91,7 +91,7 @@ func (v *AnimalFields) __premarshalJSON() (*__premarshalAnimalFields, error) {
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal AnimalFields.Owner: %w", err)
"unable to marshal AnimalFields.Owner: %w", err)
}
}
return &retval, nil
@@ -644,7 +644,7 @@ func (v *QueryFragment) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal QueryFragment.Beings: %w", err)
"unable to unmarshal QueryFragment.Beings: %w", err)
}
}
}
@@ -681,7 +681,7 @@ func (v *QueryFragment) __premarshalJSON() (*__premarshalQueryFragment, error) {
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal QueryFragment.Beings: %w", err)
"unable to marshal QueryFragment.Beings: %w", err)
}
}
}
@@ -730,7 +730,7 @@ func (v *QueryFragmentBeingsAnimal) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal QueryFragmentBeingsAnimal.Owner: %w", err)
"unable to unmarshal QueryFragmentBeingsAnimal.Owner: %w", err)
}
}
}
@@ -767,7 +767,7 @@ func (v *QueryFragmentBeingsAnimal) __premarshalJSON() (*__premarshalQueryFragme
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal QueryFragmentBeingsAnimal.Owner: %w", err)
"unable to marshal QueryFragmentBeingsAnimal.Owner: %w", err)
}
}
return &retval, nil
@@ -1040,7 +1040,7 @@ func (v *__queryWithCustomMarshalInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal __queryWithCustomMarshalInput.Date: %w", err)
"unable to unmarshal __queryWithCustomMarshalInput.Date: %w", err)
}
}
}
@@ -1071,7 +1071,7 @@ func (v *__queryWithCustomMarshalInput) __premarshalJSON() (*__premarshal__query
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal __queryWithCustomMarshalInput.Date: %w", err)
"unable to marshal __queryWithCustomMarshalInput.Date: %w", err)
}
}
return &retval, nil
@@ -1116,7 +1116,7 @@ func (v *__queryWithCustomMarshalOptionalInput) UnmarshalJSON(b []byte) error {
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal __queryWithCustomMarshalOptionalInput.Date: %w", err)
"unable to unmarshal __queryWithCustomMarshalOptionalInput.Date: %w", err)
}
}
}
@@ -1150,7 +1150,7 @@ func (v *__queryWithCustomMarshalOptionalInput) __premarshalJSON() (*__premarsha
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal __queryWithCustomMarshalOptionalInput.Date: %w", err)
"unable to marshal __queryWithCustomMarshalOptionalInput.Date: %w", err)
}
}
}
@@ -1197,7 +1197,7 @@ func (v *__queryWithCustomMarshalSliceInput) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal __queryWithCustomMarshalSliceInput.Dates: %w", err)
"unable to unmarshal __queryWithCustomMarshalSliceInput.Dates: %w", err)
}
}
}
@@ -1234,7 +1234,7 @@ func (v *__queryWithCustomMarshalSliceInput) __premarshalJSON() (*__premarshal__
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal __queryWithCustomMarshalSliceInput.Dates: %w", err)
"unable to marshal __queryWithCustomMarshalSliceInput.Dates: %w", err)
}
}
}
@@ -1397,7 +1397,7 @@ func (v *queryWithCustomMarshalOptionalUserSearchUser) UnmarshalJSON(b []byte) e
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithCustomMarshalOptionalUserSearchUser.Birthdate: %w", err)
"unable to unmarshal queryWithCustomMarshalOptionalUserSearchUser.Birthdate: %w", err)
}
}
}
@@ -1434,7 +1434,7 @@ func (v *queryWithCustomMarshalOptionalUserSearchUser) __premarshalJSON() (*__pr
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithCustomMarshalOptionalUserSearchUser.Birthdate: %w", err)
"unable to marshal queryWithCustomMarshalOptionalUserSearchUser.Birthdate: %w", err)
}
}
return &retval, nil
@@ -1504,7 +1504,7 @@ func (v *queryWithCustomMarshalSliceUsersBornOnDatesUser) UnmarshalJSON(b []byte
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithCustomMarshalSliceUsersBornOnDatesUser.Birthdate: %w", err)
"unable to unmarshal queryWithCustomMarshalSliceUsersBornOnDatesUser.Birthdate: %w", err)
}
}
}
@@ -1541,7 +1541,7 @@ func (v *queryWithCustomMarshalSliceUsersBornOnDatesUser) __premarshalJSON() (*_
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithCustomMarshalSliceUsersBornOnDatesUser.Birthdate: %w", err)
"unable to marshal queryWithCustomMarshalSliceUsersBornOnDatesUser.Birthdate: %w", err)
}
}
return &retval, nil
@@ -1589,7 +1589,7 @@ func (v *queryWithCustomMarshalUsersBornOnUser) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithCustomMarshalUsersBornOnUser.Birthdate: %w", err)
"unable to unmarshal queryWithCustomMarshalUsersBornOnUser.Birthdate: %w", err)
}
}
}
@@ -1626,7 +1626,7 @@ func (v *queryWithCustomMarshalUsersBornOnUser) __premarshalJSON() (*__premarsha
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithCustomMarshalUsersBornOnUser.Birthdate: %w", err)
"unable to marshal queryWithCustomMarshalUsersBornOnUser.Birthdate: %w", err)
}
}
return &retval, nil
@@ -1690,7 +1690,7 @@ func (v *queryWithFragmentsBeingsAnimal) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithFragmentsBeingsAnimal.Owner: %w", err)
"unable to unmarshal queryWithFragmentsBeingsAnimal.Owner: %w", err)
}
}
}
@@ -1736,7 +1736,7 @@ func (v *queryWithFragmentsBeingsAnimal) __premarshalJSON() (*__premarshalqueryW
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithFragmentsBeingsAnimal.Owner: %w", err)
"unable to marshal queryWithFragmentsBeingsAnimal.Owner: %w", err)
}
}
return &retval, nil
@@ -2013,7 +2013,7 @@ func (v *queryWithFragmentsResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithFragmentsResponse.Beings: %w", err)
"unable to unmarshal queryWithFragmentsResponse.Beings: %w", err)
}
}
}
@@ -2050,7 +2050,7 @@ func (v *queryWithFragmentsResponse) __premarshalJSON() (*__premarshalqueryWithF
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithFragmentsResponse.Beings: %w", err)
"unable to marshal queryWithFragmentsResponse.Beings: %w", err)
}
}
}
@@ -2207,7 +2207,7 @@ func (v *queryWithInterfaceListFieldResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithInterfaceListFieldResponse.Beings: %w", err)
"unable to unmarshal queryWithInterfaceListFieldResponse.Beings: %w", err)
}
}
}
@@ -2244,7 +2244,7 @@ func (v *queryWithInterfaceListFieldResponse) __premarshalJSON() (*__premarshalq
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithInterfaceListFieldResponse.Beings: %w", err)
"unable to marshal queryWithInterfaceListFieldResponse.Beings: %w", err)
}
}
}
@@ -2402,7 +2402,7 @@ func (v *queryWithInterfaceListPointerFieldResponse) UnmarshalJSON(b []byte) err
src, *dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithInterfaceListPointerFieldResponse.Beings: %w", err)
"unable to unmarshal queryWithInterfaceListPointerFieldResponse.Beings: %w", err)
}
}
}
@@ -2440,7 +2440,7 @@ func (v *queryWithInterfaceListPointerFieldResponse) __premarshalJSON() (*__prem
src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithInterfaceListPointerFieldResponse.Beings: %w", err)
"unable to marshal queryWithInterfaceListPointerFieldResponse.Beings: %w", err)
}
}
}
@@ -2611,7 +2611,7 @@ func (v *queryWithInterfaceNoFragmentsResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithInterfaceNoFragmentsResponse.Being: %w", err)
"unable to unmarshal queryWithInterfaceNoFragmentsResponse.Being: %w", err)
}
}
}
@@ -2644,7 +2644,7 @@ func (v *queryWithInterfaceNoFragmentsResponse) __premarshalJSON() (*__premarsha
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithInterfaceNoFragmentsResponse.Being: %w", err)
"unable to marshal queryWithInterfaceNoFragmentsResponse.Being: %w", err)
}
}
retval.Me = v.Me
@@ -2732,7 +2732,7 @@ func (v *queryWithNamedFragmentsBeingsAnimal) __premarshalJSON() (*__premarshalq
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithNamedFragmentsBeingsAnimal.AnimalFields.Owner: %w", err)
"unable to marshal queryWithNamedFragmentsBeingsAnimal.AnimalFields.Owner: %w", err)
}
}
return &retval, nil
@@ -2938,7 +2938,7 @@ func (v *queryWithNamedFragmentsResponse) UnmarshalJSON(b []byte) error {
src, dst)
if err != nil {
return fmt.Errorf(
"Unable to unmarshal queryWithNamedFragmentsResponse.Beings: %w", err)
"unable to unmarshal queryWithNamedFragmentsResponse.Beings: %w", err)
}
}
}
@@ -2975,7 +2975,7 @@ func (v *queryWithNamedFragmentsResponse) __premarshalJSON() (*__premarshalquery
&src)
if err != nil {
return nil, fmt.Errorf(
"Unable to marshal queryWithNamedFragmentsResponse.Beings: %w", err)
"unable to marshal queryWithNamedFragmentsResponse.Beings: %w", err)
}
}
}