...
1
9
10 package openapi
11
12 type Graphql struct {
13
14 Data map[string]interface{} `json:"data,omitempty"`
15
16 Errors []map[string]interface{} `json:"errors,omitempty"`
17 }
18
19
20 func AssertGraphqlRequired(obj Graphql) error {
21 return nil
22 }
23
24
25
26 func AssertRecurseGraphqlRequired(objSlice interface{}) error {
27 return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
28 aGraphql, ok := obj.(Graphql)
29 if !ok {
30 return ErrTypeAssertionError
31 }
32 return AssertGraphqlRequired(aGraphql)
33 })
34 }
35
View as plain text