...
1
9
10 package openapi
11
12 type DevstateDevfilePutRequest struct {
13 Content string `json:"content"`
14 }
15
16
17 func AssertDevstateDevfilePutRequestRequired(obj DevstateDevfilePutRequest) error {
18 elements := map[string]interface{}{
19 "content": obj.Content,
20 }
21 for name, el := range elements {
22 if isZero := IsZeroValue(el); isZero {
23 return &RequiredError{Field: name}
24 }
25 }
26
27 return nil
28 }
29
30
31
32 func AssertRecurseDevstateDevfilePutRequestRequired(objSlice interface{}) error {
33 return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
34 aDevstateDevfilePutRequest, ok := obj.(DevstateDevfilePutRequest)
35 if !ok {
36 return ErrTypeAssertionError
37 }
38 return AssertDevstateDevfilePutRequestRequired(aDevstateDevfilePutRequest)
39 })
40 }
41
View as plain text