github.com/skf/moby@v1.13.1/hack/generate-swagger-api.sh (about) 1 #!/bin/sh 2 set -eu 3 4 swagger generate model -f api/swagger.yaml \ 5 -t api -m types --skip-validator -C api/swagger-gen.yaml \ 6 -n Volume \ 7 -n Port \ 8 -n ImageSummary \ 9 -n Plugin -n PluginDevice -n PluginMount -n PluginEnv -n PluginInterfaceType \ 10 -n ErrorResponse \ 11 -n IdResponse \ 12 -n ServiceUpdateResponse 13 14 swagger generate operation -f api/swagger.yaml \ 15 -t api -a types -m types -C api/swagger-gen.yaml \ 16 -T api/templates --skip-responses --skip-parameters --skip-validator \ 17 -n VolumesList \ 18 -n VolumesCreate \ 19 -n ContainerCreate \ 20 -n ContainerUpdate \ 21 -n Authenticate \ 22 -n ContainerWait