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