Skip to content

Commit

Permalink
Fix typos in test fields and comments (#1287)
Browse files Browse the repository at this point in the history
Co-authored-by: Jamie Tanna <[email protected]>
  • Loading branch information
alexandear and jamietanna authored Jan 25, 2024
1 parent d1b4504 commit eb0c4cd
Show file tree
Hide file tree
Showing 8 changed files with 96 additions and 97 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ which help you to use the various OpenAPI 3 Authentication mechanism.
}
// Example providing your own provider using an anonymous function wrapping in the
// InterceptoFn adapter. The behaviour between the InterceptorFn and the Interceptor interface
// InterceptorFn adapter. The behaviour between the InterceptorFn and the Interceptor interface
// are the same as http.HandlerFunc and http.Handler.
customProvider := func(req *http.Request, ctx context.Context) error {
// Just log the request header, nothing else.
Expand Down
6 changes: 3 additions & 3 deletions cmd/oapi-codegen/oapi-codegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var (
flagExcludeSchemas string
flagResponseTypeSuffix string
flagAliasTypes bool
flagInitalismOverrides bool
flagInitialismOverrides bool
)

type configuration struct {
Expand Down Expand Up @@ -109,7 +109,7 @@ func main() {
flag.StringVar(&flagExcludeSchemas, "exclude-schemas", "", "A comma separated list of schemas which must be excluded from generation.")
flag.StringVar(&flagResponseTypeSuffix, "response-type-suffix", "", "The suffix used for responses types.")
flag.BoolVar(&flagAliasTypes, "alias-types", false, "Alias type declarations of possible.")
flag.BoolVar(&flagInitalismOverrides, "initialism-overrides", false, "Use initialism overrides.")
flag.BoolVar(&flagInitialismOverrides, "initialism-overrides", false, "Use initialism overrides.")

flag.Parse()

Expand Down Expand Up @@ -429,7 +429,7 @@ func updateConfigFromFlags(cfg *configuration) error {
cfg.OutputFile = flagOutputFile
}

cfg.OutputOptions.InitialismOverrides = flagInitalismOverrides
cfg.OutputOptions.InitialismOverrides = flagInitialismOverrides

return nil
}
Expand Down
2 changes: 1 addition & 1 deletion internal/test/components/components.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/test/components/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ components:
- $ref: '#/components/schemas/OneOfVariant1'
- $ref: '#/components/schemas/OneOfVariant2'
OneOfObject9:
description: oneOf with fixed descriminator
description: oneOf with fixed discriminator
type: object
properties:
type:
Expand Down
96 changes: 48 additions & 48 deletions internal/test/issues/issue-1219/issue.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eb0c4cd

Please sign in to comment.