...
1
9
10 package openapi
11
12 type GeneralError struct {
13 Message string `json:"message,omitempty"`
14 }
15
16
17 func AssertGeneralErrorRequired(obj GeneralError) error {
18 return nil
19 }
20
21
22
23 func AssertRecurseGeneralErrorRequired(objSlice interface{}) error {
24 return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
25 aGeneralError, ok := obj.(GeneralError)
26 if !ok {
27 return ErrTypeAssertionError
28 }
29 return AssertGeneralErrorRequired(aGeneralError)
30 })
31 }
32
View as plain text