Skip to content

Commit

Permalink
openapi fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed May 14, 2021
1 parent 89d1a50 commit 2b255e2
Show file tree
Hide file tree
Showing 5 changed files with 1,815 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .bingo/oapi-codegen.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT

go 1.15

require github.com/deepmap/oapi-codegen v1.6.1 // cmd/oapi-codegen
15 changes: 15 additions & 0 deletions .make/openapi.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.PHONY: $(OPENAPI_SRC)/${NAME}.types.go
$(OPENAPI_SRC)/${NAME}.types.go: $(OAPI_CODEGEN)
@echo "$(NAME): generating $(OPENAPI_SRC)/${NAME}.types.go"
@$(OAPI_CODEGEN) \
-generate types \
-o $(OPENAPI_SRC)/${NAME}.types.go \
$(OPENAPI_SRC)/${NAME}-${OPENGRAPH_VERSION}.yml

.PHONY: $(OPENAPI_SRC)/${NAME}.server.go
$(OPENAPI_SRC)/${NAME}.server.go: $(OAPI_CODEGEN)
@echo "$(NAME): generating $(OPENAPI_SRC)/${NAME}.types.go"
@$(OAPI_CODEGEN) \
-generate chi-server \
-o $(OPENAPI_SRC)/${NAME}.server.go \
$(OPENAPI_SRC)/${NAME}-${OPENGRAPH_VERSION}.yml
Loading

0 comments on commit 2b255e2

Please sign in to comment.