Skip to content

Commit

Permalink
Restore swagger codegen typos
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanBaulch committed Oct 3, 2024
1 parent ca84051 commit c89dc42
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/internal/clients/abe/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}

// contains is a case insensitive match, finding needle in a haystack
// contains is a case insenstive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {
Expand Down
2 changes: 1 addition & 1 deletion examples/internal/clients/abe/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c contextKey) String() string {
}

var (
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
ContextOAuth2 = contextKey("token")

// ContextBasicAuth takes BasicAuth as authentication for the request.
Expand Down
4 changes: 2 additions & 2 deletions examples/internal/clients/echo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
)

// APIClient manages communication with the Echo Service API version not set
// APIClient manages communication with the Echo Service API vversion not set
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
Expand Down Expand Up @@ -97,7 +97,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}

// contains is a case insensitive match, finding needle in a haystack
// contains is a case insenstive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {
Expand Down
2 changes: 1 addition & 1 deletion examples/internal/clients/echo/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c contextKey) String() string {
}

var (
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
ContextOAuth2 = contextKey("token")

// ContextBasicAuth takes BasicAuth as authentication for the request.
Expand Down
4 changes: 2 additions & 2 deletions examples/internal/clients/generateunboundmethods/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
)

// APIClient manages communication with the examples/internal/proto/examplepb/generate_unbound_methods.proto API version not set
// APIClient manages communication with the examples/internal/proto/examplepb/generate_unbound_methods.proto API vversion not set
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
Expand Down Expand Up @@ -97,7 +97,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}

// contains is a case insensitive match, finding needle in a haystack
// contains is a case insenstive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c contextKey) String() string {
}

var (
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
ContextOAuth2 = contextKey("token")

// ContextBasicAuth takes BasicAuth as authentication for the request.
Expand Down
4 changes: 2 additions & 2 deletions examples/internal/clients/responsebody/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var (
xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
)

// APIClient manages communication with the examples/internal/proto/examplepb/response_body_service.proto API version not set
// APIClient manages communication with the examples/internal/proto/examplepb/response_body_service.proto API vversion not set
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
Expand Down Expand Up @@ -97,7 +97,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}

// contains is a case insensitive match, finding needle in a haystack
// contains is a case insenstive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {
Expand Down
2 changes: 1 addition & 1 deletion examples/internal/clients/responsebody/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (c contextKey) String() string {
}

var (
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
ContextOAuth2 = contextKey("token")

// ContextBasicAuth takes BasicAuth as authentication for the request.
Expand Down
2 changes: 1 addition & 1 deletion examples/internal/clients/unannotatedecho/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func selectHeaderAccept(accepts []string) string {
return strings.Join(accepts, ",")
}

// contains is a case insensitive match, finding needle in a haystack
// contains is a case insenstive match, finding needle in a haystack
func contains(haystack []string, needle string) bool {
for _, a := range haystack {
if strings.ToLower(a) == strings.ToLower(needle) {
Expand Down
2 changes: 1 addition & 1 deletion examples/internal/clients/unannotatedecho/configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (c contextKey) String() string {
}

var (
// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
ContextOAuth2 = contextKey("token")

// ContextBasicAuth takes BasicAuth as authentication for the request.
Expand Down

0 comments on commit c89dc42

Please sign in to comment.