Our version of go-swagger doesn't handle the `omitempty` correctly for
the new field.
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
| ... | ... |
@@ -1,10 +1,5 @@ |
| 1 | 1 |
package image |
| 2 | 2 |
|
| 3 |
-// This file was generated by the swagger tool. |
|
| 4 |
-// Editing this file might prove futile when you re-run the swagger generate command |
|
| 5 |
- |
|
| 6 |
-// Summary summary |
|
| 7 |
-// swagger:model Summary |
|
| 8 | 3 |
type Summary struct {
|
| 9 | 4 |
|
| 10 | 5 |
// Number of containers using this image. Includes both stopped and running |
| ... | ... |
@@ -26,8 +26,9 @@ swagger generate model -f api/swagger.yaml \ |
| 26 | 26 |
|
| 27 | 27 |
swagger generate model -f api/swagger.yaml \ |
| 28 | 28 |
-t api -m types/image --skip-validator -C api/swagger-gen.yaml \ |
| 29 |
- -n ImageDeleteResponseItem \ |
|
| 30 |
- -n ImageSummary |
|
| 29 |
+ -n ImageDeleteResponseItem |
|
| 30 |
+#-n ImageSummary TODO: Restore when go-swagger is updated |
|
| 31 |
+# See https://github.com/moby/moby/pull/47526#discussion_r1551800022 |
|
| 31 | 32 |
|
| 32 | 33 |
swagger generate model -f api/swagger.yaml \ |
| 33 | 34 |
-t api -m types/network --skip-validator -C api/swagger-gen.yaml \ |