...
1
9
10 package openapi
11
12 type Events struct {
13 PreStart []string `json:"preStart,omitempty"`
14
15 PostStart []string `json:"postStart,omitempty"`
16
17 PreStop []string `json:"preStop,omitempty"`
18
19 PostStop []string `json:"postStop,omitempty"`
20 }
21
22
23 func AssertEventsRequired(obj Events) error {
24 return nil
25 }
26
27
28
29 func AssertRecurseEventsRequired(objSlice interface{}) error {
30 return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
31 aEvents, ok := obj.(Events)
32 if !ok {
33 return ErrTypeAssertionError
34 }
35 return AssertEventsRequired(aEvents)
36 })
37 }
38
View as plain text