...
1
9
10 package openapi
11
12 type PlayerEntry struct {
13
14 Name string `json:"Name,omitempty"`
15
16 Skin string `json:"Skin,omitempty"`
17
18 Color string `json:"Color,omitempty"`
19
20 Score float32 `json:"Score,omitempty"`
21
22 Speed float32 `json:"Speed,omitempty"`
23
24 Weight float32 `json:"Weight,omitempty"`
25 }
26
27
28 func AssertPlayerEntryRequired(obj PlayerEntry) error {
29 return nil
30 }
31
32
33
34 func AssertRecursePlayerEntryRequired(objSlice interface{}) error {
35 return AssertRecurseInterfaceRequired(objSlice, func(obj interface{}) error {
36 aPlayerEntry, ok := obj.(PlayerEntry)
37 if !ok {
38 return ErrTypeAssertionError
39 }
40 return AssertPlayerEntryRequired(aPlayerEntry)
41 })
42 }
43
View as plain text