mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Convert the existing swagger2.0 file to a moden OpenAPI file. Add missing endpoitns and model definitions. Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
17 lines
456 B
Makefile
17 lines
456 B
Makefile
TAG?=latest
|
|
NS?=openfaas
|
|
|
|
.PHONY: build-gateway
|
|
build-gateway:
|
|
(cd gateway; docker buildx build --platform linux/amd64 -t ${NS}/gateway:latest-dev .)
|
|
|
|
|
|
# generate Go models from the OpenAPI spec using https://github.com/contiamo/openapi-generator-go
|
|
generate:
|
|
rm gateway/models/model_*.go || true
|
|
openapi-generator-go generate models -s api-docs/spec.openapi.yml -o gateway/models --package-name models
|
|
|
|
# .PHONY: test-ci
|
|
# test-ci:
|
|
# ./contrib/ci.sh
|