aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/Makefile
blob: 915f0b9b3990883db91a69537190e50136caf958 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export GO111MODULE=off

SWAGGER_OUT ?= swagger.yaml

.PHONY: ${SWAGGER_OUT}
${SWAGGER_OUT}:
	# generate doesn't remove file on error
	rm -f ${SWAGGER_OUT}
	swagger generate spec -o ${SWAGGER_OUT} -w ./

# TODO: when pass validation move it under swagger.
validate:
	swagger validate ${SWAGGER_OUT}