Skip to content

Commit

Permalink
Merge branch 'context' of https://github.com/bvwells/swagger-codegen
Browse files Browse the repository at this point in the history
…into bvwells-context
  • Loading branch information
wing328 committed May 3, 2018
2 parents 432b358 + 5e8e78e commit bbb70b4
Show file tree
Hide file tree
Showing 18 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion modules/swagger-codegen/src/main/resources/go/api.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package {{packageName}}

{{#operations}}
import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
{{#imports}} "{{import}}"
{{/imports}}
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package {{packageName}}

import (
"bytes"
"context"
"encoding/json"
"encoding/xml"
"errors"
Expand All @@ -20,7 +21,6 @@ import (
"time"
"unicode/utf8"

"context"
"golang.org/x/oauth2"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ paths:
type: "array"
items:
type: "string"
default: "available"
enum:
- "available"
- "pending"
- "sold"
default: "available"
collectionFormat: "csv"
x-exportParamName: "Status"
responses:
Expand Down Expand Up @@ -639,10 +639,10 @@ paths:
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
default: "$"
x-exportParamName: "EnumFormStringArray"
- name: "enum_form_string"
in: "formData"
Expand All @@ -663,10 +663,10 @@ paths:
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
default: "$"
x-exportParamName: "EnumHeaderStringArray"
- name: "enum_header_string"
in: "header"
Expand All @@ -687,10 +687,10 @@ paths:
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
default: "$"
x-exportParamName: "EnumQueryStringArray"
- name: "enum_query_string"
in: "query"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
)

// Linger please
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore-withXml/api_fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"github.com/antihax/optional"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
)

// Linger please
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore-withXml/api_pet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"fmt"
"github.com/antihax/optional"
"os"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"fmt"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore-withXml/api_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"fmt"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore-withXml/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package petstore

import (
"bytes"
"context"
"encoding/json"
"encoding/xml"
"errors"
Expand All @@ -29,7 +30,6 @@ import (
"time"
"unicode/utf8"

"context"
"golang.org/x/oauth2"
)

Expand Down
8 changes: 4 additions & 4 deletions samples/client/petstore/go/go-petstore/api/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ paths:
type: "array"
items:
type: "string"
default: "available"
enum:
- "available"
- "pending"
- "sold"
default: "available"
collectionFormat: "csv"
x-exportParamName: "Status"
responses:
Expand Down Expand Up @@ -639,10 +639,10 @@ paths:
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
default: "$"
x-exportParamName: "EnumFormStringArray"
- name: "enum_form_string"
in: "formData"
Expand All @@ -663,10 +663,10 @@ paths:
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
default: "$"
x-exportParamName: "EnumHeaderStringArray"
- name: "enum_header_string"
in: "header"
Expand All @@ -687,10 +687,10 @@ paths:
type: "array"
items:
type: "string"
default: "$"
enum:
- ">"
- "$"
default: "$"
x-exportParamName: "EnumQueryStringArray"
- name: "enum_query_string"
in: "query"
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore/api_another_fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
)

// Linger please
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore/api_fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"github.com/antihax/optional"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
)

// Linger please
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore/api_pet.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"fmt"
"github.com/antihax/optional"
"os"
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore/api_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"fmt"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore/api_user.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
package petstore

import (
"context"
"io/ioutil"
"net/http"
"net/url"
"strings"
"context"
"fmt"
)

Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/go/go-petstore/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ package petstore

import (
"bytes"
"context"
"encoding/json"
"encoding/xml"
"errors"
Expand All @@ -29,7 +30,6 @@ import (
"time"
"unicode/utf8"

"context"
"golang.org/x/oauth2"
)

Expand Down

0 comments on commit bbb70b4

Please sign in to comment.