Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/authenticated-api/echo/server/fake_jws.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (f *FakeAuthenticator) ValidateJWS(jwsString string) (jwt.Token, error) {
jwt.WithAudience(FakeAudience), jwt.WithIssuer(FakeIssuer))
}

// SignToken takes a JWT and signs it with our priviate key, returning a JWS.
// SignToken takes a JWT and signs it with our private key, returning a JWS.
func (f *FakeAuthenticator) SignToken(t jwt.Token) ([]byte, error) {
hdr := jws.NewHeaders()
if err := hdr.Set(jws.AlgorithmKey, jwa.ES256); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/chi-middleware/oapi_validate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Package middleware implements middleware function for go-chi or net/http,
// which validates incoming HTTP requests to make sure that they conform to the given OAPI 3.0 specification.
// When OAPI validation failes on the request, we return an HTTP/400.
// When OAPI validation fails on the request, we return an HTTP/400.
package middleware

import (
Expand Down
6 changes: 3 additions & 3 deletions pkg/codegen/codegen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func TestExamplePetStoreCodeGenerationWithUserTemplates(t *testing.T) {
// Check that we have a package:
assert.Contains(t, code, "package api")

// Check that the built-in template has been overriden
// Check that the built-in template has been overridden
assert.Contains(t, code, "//blah")
}

Expand Down Expand Up @@ -145,7 +145,7 @@ func TestExamplePetStoreCodeGenerationWithFileUserTemplates(t *testing.T) {
// Check that we have a package:
assert.Contains(t, code, "package api")

// Check that the built-in template has been overriden
// Check that the built-in template has been overridden
assert.Contains(t, code, "// Package api provides primitives to interact with the openapi")
}

Expand Down Expand Up @@ -194,7 +194,7 @@ func TestExamplePetStoreCodeGenerationWithHTTPUserTemplates(t *testing.T) {
// Check that we have a package:
assert.Contains(t, code, "package api")

// Check that the built-in template has been overriden
// Check that the built-in template has been overridden
assert.Contains(t, code, "//blah")
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/codegen/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ func IsGoKeyword(str string) bool {
}

// IsPredeclaredGoIdentifier returns whether the given string
// is a predefined go indentifier.
// is a predefined go identifier.
//
// See https://golang.org/ref/spec#Predeclared_identifiers
func IsPredeclaredGoIdentifier(str string) bool {
Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/bindstring.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func BindStringToObject(src string, dst interface{}) error {
t = v.Type()
}

// For some optioinal args
// For some optional args
if t.Kind() == reflect.Ptr {
if v.IsNil() {
v.Set(reflect.New(t.Elem()))
Expand Down
4 changes: 2 additions & 2 deletions pkg/util/inputmapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
)

// The input mapping is experessed on the command line as `key1:value1,key2:value2,...`
// The input mapping is expressed on the command line as `key1:value1,key2:value2,...`
// We parse it here, but need to keep in mind that keys or values may contain
// commas and colons. We will allow escaping those using double quotes, so
// when passing in "key1":"value1", we will not look inside the quoted sections.
Expand Down Expand Up @@ -47,7 +47,7 @@ func ParseCommandLineList(input string) []string {
return args
}

// This function splits a string along the specifed separator, but it
// This function splits a string along the specified separator, but it
// ignores anything between double quotes for splitting. We do simple
// inside/outside quote counting. Quotes are not stripped from output.
func splitString(s string, sep rune) []string {
Expand Down