moby/hack/generate-swagger-api.sh
Daniel Nephin d459e83b1c Generate VolumeList response from the swagger spec
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-10-31 11:13:41 -04:00

14 lines
421 B
Bash
Executable file

#!/bin/sh
set -eu
swagger generate model -f api/swagger.yaml \
-t api -m types --skip-validator \
-n Volume \
-n Port \
-n ImageSummary \
-n Plugin -n PluginDevice -n PluginMount -n PluginEnv -n PluginInterfaceType
swagger generate operation -f api/swagger.yaml \
-t api -s server -a types -m types \
-T api/templates --skip-responses --skip-parameters --skip-validator \
-n VolumesList