Skip to content

Commit

Permalink
Refactor openapi.yaml into multiple files (#413)
Browse files Browse the repository at this point in the history
* add query/path parameters to APIs

* refactor openapi.yaml into multiple files

* s/APIPermission/InfraAPIPermission/

* add license to openapi

* add openapi lint
  • Loading branch information
mxyng authored Oct 7, 2021
1 parent 0e8d4db commit ead651e
Show file tree
Hide file tree
Showing 39 changed files with 1,419 additions and 559 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: golangci/golangci-lint-action@v2
openapi-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npx @redocly/openapi-cli lint openapi.yaml
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ docs:
clean:
$(RM) -r dist

.PHONY: openapi
openapi:
@$(RM) -r ./internal/api/*.go
@GO_POST_PROCESS_FILE="gofmt -s -w" openapi-generator generate -i ./openapi.yaml -g go -o ./internal/api --additional-properties packageName=api,isGoSubmodule=true --enable-post-process-file > /dev/null
Expand Down
6 changes: 3 additions & 3 deletions internal/api/api_api_keys.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/api/api_auth.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

131 changes: 131 additions & 0 deletions internal/api/api_destinations.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

131 changes: 131 additions & 0 deletions internal/api/api_groups.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ead651e

Please sign in to comment.