Skip to content

Commit

Permalink
Merge PR #5088: Swagger Auto Gen - Gov Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzampolin authored and alexanderbez committed Sep 30, 2019
1 parent f63e1a6 commit 93f82a5
Show file tree
Hide file tree
Showing 9 changed files with 1,173 additions and 221 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,18 @@ jobs:
name: upload
command: bash <(curl -s https://codecov.io/bash) -f coverage.txt

update-swagger-docs:
verify-swagger-docs:
executor: golang
steps:
- make:
target: update-swagger-docs
description: "Check if Swagger docs are up-to-date"
target: verify-swagger-docs
description: "Verify Swagger docs are up-to-date"

workflows:
version: 2
test-suite:
jobs:
- update-swagger-docs:
- verify-swagger-docs:
requires:
- setup-dependencies
- setup-dependencies:
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ build: go.sum
.PHONY: build

update-swagger-docs: swag
@scripts/swag.sh $(BINDIR)/swag
$(BINDIR)/swag init -g client/rest/root.go --output client/rest/docs
.PHONY: update-swagger-docs

verify-swagger-docs: swag
@scripts/swag.sh $(BINDIR)/swag
.PHONY: verify-swagger-docs

mocks: $(MOCKS_DIR)
mockgen -source=x/auth/types/account_retriever.go -package mocks -destination tests/mocks/account_retriever.go
.PHONY: mocks
Expand Down
466 changes: 403 additions & 63 deletions client/rest/docs/docs.go

Large diffs are not rendered by default.

454 changes: 389 additions & 65 deletions client/rest/docs/swagger.json

Large diffs are not rendered by default.

Loading

0 comments on commit 93f82a5

Please sign in to comment.