Skip to content

Commit

Permalink
Upgrade to swagger-codegen 2.3.1
Browse files Browse the repository at this point in the history
Also fix a regex-o in .travis.yml. + needed to be escaped.
  • Loading branch information
achew22 committed Feb 10, 2018
1 parent 6658b3a commit b1d75c2
Show file tree
Hide file tree
Showing 24 changed files with 2,898 additions and 1,109 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@ cache:
- ${TRAVIS_BUILD_DIR}/examples/browser/node_modules
before_install:
- ./.travis/install-protoc.sh 3.1.0
- ./.travis/install-swagger-codegen.sh 2.2.2
- ./.travis/install-swagger-codegen.sh 2.3.1
- nvm install v6.1 && nvm use v6.1 && node --version
- go get github.com/golang/lint/golint
- go get github.com/dghubble/sling
- go get github.com/go-resty/resty
- go get golang.org/x/oauth2
- go get golang.org/x/net/context
install:
- go get github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
- go get github.com/grpc-ecosystem/grpc-gateway/runtime
Expand All @@ -35,7 +37,7 @@ after_success:
env:
global:
- "PATH=$PATH:$HOME/local/bin"
- GO_VERSION_TO_DIFF_TEST="go version go1\.9\.[0-9]+ linux/amd64"
- GO_VERSION_TO_DIFF_TEST="go version go1\.9\.[0-9]\+ linux/amd64"
matrix:
- GATEWAY_PLUGIN_FLAGS=
- GATEWAY_PLUGIN_FLAGS=request_context=false
1 change: 1 addition & 0 deletions examples/clients/abe/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.3.1
8 changes: 4 additions & 4 deletions examples/clients/abe/a_bit_of_everything_nested.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
/*
* A Bit of Everything
*
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
*
* OpenAPI spec version: 1.0
* API version: 1.0
* Contact: none@example.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/

package abe
Expand All @@ -18,5 +18,5 @@ type ABitOfEverythingNested struct {

Amount int64 `json:"amount,omitempty"`

Ok NestedDeepEnum `json:"ok,omitempty"`
Ok *NestedDeepEnum `json:"ok,omitempty"`
}
Loading

0 comments on commit b1d75c2

Please sign in to comment.