summaryrefslogtreecommitdiff
path: root/pkg/api/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/Makefile')
-rw-r--r--pkg/api/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/api/Makefile b/pkg/api/Makefile
index 915f0b9b3..f564b6516 100644
--- a/pkg/api/Makefile
+++ b/pkg/api/Makefile
@@ -2,12 +2,12 @@ export GO111MODULE=off
SWAGGER_OUT ?= swagger.yaml
+validate: ${SWAGGER_OUT}
+ swagger validate ${SWAGGER_OUT}
+
.PHONY: ${SWAGGER_OUT}
${SWAGGER_OUT}:
# generate doesn't remove file on error
rm -f ${SWAGGER_OUT}
- swagger generate spec -o ${SWAGGER_OUT} -w ./
+ swagger generate spec -o ${SWAGGER_OUT} -i tags.yaml -w ./
-# TODO: when pass validation move it under swagger.
-validate:
- swagger validate ${SWAGGER_OUT}