Skip to content

Commit

Permalink
feat: Generate OpenAPI specs as part of the build (#405)
Browse files Browse the repository at this point in the history
* Apply argo's method of generating openapi specs

* Add swagger support for shared types in common
  • Loading branch information
retnuh authored and VaibhavPage committed Jan 6, 2020
1 parent d2d8db1 commit b4aeb6f
Show file tree
Hide file tree
Showing 6 changed files with 1,674 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ clientgen:
.PHONY: openapigen
openapi-gen:
./hack/update-openapigen.sh
go run ./hack/gen-openapi-spec/main.go ${VERSION} > ${CURRENT_DIR}/api/openapi-spec/swagger.json

.PHONY: codegen
codegen: clientgen openapigen
Expand Down
Loading

0 comments on commit b4aeb6f

Please sign in to comment.