Skip to content

Commit

Permalink
Merge pull request #5 from checkr/zz/fix-generated-code
Browse files Browse the repository at this point in the history
Fix code generation with goimports
  • Loading branch information
zhouzhuojie authored Mar 29, 2019
2 parents 471fb75 + 0e72ffa commit 7518a10
Show file tree
Hide file tree
Showing 40 changed files with 683 additions and 924 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.9
working_directory: /go/src/github.com/checkr/goflagr
steps:
- checkout
- run: go get -v -t -d ./...
- run: go build -v ./...
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.4.0-SNAPSHOT
2.4.4
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ gen:
rm -rf *.go
rm -rf .swagger-codegen
rm -rf docs
rm -rf api
rm README.md
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli generate \
docker run --rm -v ${PWD}:/local swaggerapi/swagger-codegen-cli:2.4.4 generate \
-i /local/swagger.yaml \
-l go \
-o /local/ -c /local/swagger_go.json
go get golang.org/x/tools/cmd/goimports
goimports -w .
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Flagr is a feature flagging, A/B testing and dynamic configuration microservice.
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.

- API version: 1.1.0
- Package version: 1.1.0
- Package version: 1.1.1
- Build package: io.swagger.codegen.languages.GoClientCodegen

## Installation
Expand Down Expand Up @@ -81,8 +81,4 @@ Class | Method | HTTP request | Description
## Documentation For Authorization
Endpoints do not require authorization.


## Author



Loading

0 comments on commit 7518a10

Please sign in to comment.