mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![Aaron Lehmann](/assets/img/avatar_default.png)
Modify the service update and create APIs to return optional warning messages as part of the response. Populate these messages with an informative reason when digest resolution fails. This is a small API change, but significantly improves the UX. The user can now get immediate feedback when they've specified a nonexistent image or unreachable registry. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
22 lines
651 B
Bash
Executable file
22 lines
651 B
Bash
Executable file
#!/bin/sh
|
|
set -eu
|
|
|
|
swagger generate model -f api/swagger.yaml \
|
|
-t api -m types --skip-validator -C api/swagger-gen.yaml \
|
|
-n Volume \
|
|
-n Port \
|
|
-n ImageSummary \
|
|
-n Plugin -n PluginDevice -n PluginMount -n PluginEnv -n PluginInterfaceType \
|
|
-n ErrorResponse \
|
|
-n IdResponse \
|
|
-n ServiceUpdateResponse
|
|
|
|
swagger generate operation -f api/swagger.yaml \
|
|
-t api -a types -m types -C api/swagger-gen.yaml \
|
|
-T api/templates --skip-responses --skip-parameters --skip-validator \
|
|
-n VolumesList \
|
|
-n VolumesCreate \
|
|
-n ContainerCreate \
|
|
-n ContainerUpdate \
|
|
-n Authenticate \
|
|
-n ContainerWait
|