mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Use a config to generate swagger api types
Moves the resposne types to a package under api/types Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
8f81bb92a3
commit
29df3bdb11
14 changed files with 24 additions and 12 deletions
|
|
@ -2,7 +2,7 @@
|
|||
set -eu
|
||||
|
||||
swagger generate model -f api/swagger.yaml \
|
||||
-t api -m types --skip-validator \
|
||||
-t api -m types --skip-validator -C api/swagger-gen.yaml \
|
||||
-n Volume \
|
||||
-n Port \
|
||||
-n ImageSummary \
|
||||
|
|
@ -10,7 +10,7 @@ swagger generate model -f api/swagger.yaml \
|
|||
-n ErrorResponse
|
||||
|
||||
swagger generate operation -f api/swagger.yaml \
|
||||
-t api -s server -a types -m types \
|
||||
-t api -a types -m types -C api/swagger-gen.yaml \
|
||||
-T api/templates --skip-responses --skip-parameters --skip-validator \
|
||||
-n VolumesList \
|
||||
-n VolumesCreate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue