@@ -57,21 +57,19 @@ func (o *GetComponentsByLatestRelease) ServeHTTP(rw http.ResponseWriter, r *http
57
57
58
58
}
59
59
60
- /*GetComponentsByLatestReleaseOKBodyBody get components by latest release o k body body
60
+ /*GetComponentsByLatestReleaseBody get components by latest release body
61
61
62
- swagger:model GetComponentsByLatestReleaseOKBodyBody
62
+ swagger:model GetComponentsByLatestReleaseBody
63
63
*/
64
- type GetComponentsByLatestReleaseOKBodyBody struct {
64
+ type GetComponentsByLatestReleaseBody struct {
65
65
66
66
/* data
67
-
68
- Required: true
69
- */
70
- Data []* models.ComponentDetail `json:"data"`
67
+ */
68
+ Data []* models.ComponentDetail `json:"data,omitempty"`
71
69
}
72
70
73
- // Validate validates this get components by latest release o k body body
74
- func (o * GetComponentsByLatestReleaseOKBodyBody ) Validate (formats strfmt.Registry ) error {
71
+ // Validate validates this get components by latest release body
72
+ func (o * GetComponentsByLatestReleaseBody ) Validate (formats strfmt.Registry ) error {
75
73
var res []error
76
74
77
75
if err := o .validateData (formats ); err != nil {
@@ -85,10 +83,10 @@ func (o *GetComponentsByLatestReleaseOKBodyBody) Validate(formats strfmt.Registr
85
83
return nil
86
84
}
87
85
88
- func (o * GetComponentsByLatestReleaseOKBodyBody ) validateData (formats strfmt.Registry ) error {
86
+ func (o * GetComponentsByLatestReleaseBody ) validateData (formats strfmt.Registry ) error {
89
87
90
- if err := validate . Required ( "getComponentsByLatestReleaseOK" + "." + "data" , "body" , o .Data ); err != nil {
91
- return err
88
+ if swag . IsZero ( o .Data ) { // not required
89
+ return nil
92
90
}
93
91
94
92
for i := 0 ; i < len (o .Data ); i ++ {
@@ -105,19 +103,21 @@ func (o *GetComponentsByLatestReleaseOKBodyBody) validateData(formats strfmt.Reg
105
103
return nil
106
104
}
107
105
108
- /*GetComponentsByLatestReleaseBody get components by latest release body
106
+ /*GetComponentsByLatestReleaseOKBodyBody get components by latest release o k body body
109
107
110
- swagger:model GetComponentsByLatestReleaseBody
108
+ swagger:model GetComponentsByLatestReleaseOKBodyBody
111
109
*/
112
- type GetComponentsByLatestReleaseBody struct {
110
+ type GetComponentsByLatestReleaseOKBodyBody struct {
113
111
114
112
/* data
115
- */
116
- Data []* models.ComponentDetail `json:"data,omitempty"`
113
+
114
+ Required: true
115
+ */
116
+ Data []* models.ComponentDetail `json:"data"`
117
117
}
118
118
119
- // Validate validates this get components by latest release body
120
- func (o * GetComponentsByLatestReleaseBody ) Validate (formats strfmt.Registry ) error {
119
+ // Validate validates this get components by latest release o k body body
120
+ func (o * GetComponentsByLatestReleaseOKBodyBody ) Validate (formats strfmt.Registry ) error {
121
121
var res []error
122
122
123
123
if err := o .validateData (formats ); err != nil {
@@ -131,10 +131,10 @@ func (o *GetComponentsByLatestReleaseBody) Validate(formats strfmt.Registry) err
131
131
return nil
132
132
}
133
133
134
- func (o * GetComponentsByLatestReleaseBody ) validateData (formats strfmt.Registry ) error {
134
+ func (o * GetComponentsByLatestReleaseOKBodyBody ) validateData (formats strfmt.Registry ) error {
135
135
136
- if swag . IsZero ( o .Data ) { // not required
137
- return nil
136
+ if err := validate . Required ( "getComponentsByLatestReleaseOK" + "." + "data" , "body" , o .Data ); err != nil {
137
+ return err
138
138
}
139
139
140
140
for i := 0 ; i < len (o .Data ); i ++ {
0 commit comments