v1.7.0 had failing unit tests, these are now fixed.
The format for schemas of type number can now be any go type. This isn't spec compliant, but easier to work with
Add a version flag
The oapi-codegen command now accepts a --version command line option, which will use the debug.BuildInfo to print out the version of the oapi-codegen module which produced it.
The version number will look the same as what you'd see in your go.mod file when importing oapi-codegen.
Enum generation wasn't working very well, so I merged a new PR which fixes it (deepmap/oapi-codegen#241), but this is a breaking change. Your enum names may change if you use special characters in them which require renaming into valid Go identifiers.
Sorry about the breaking change, we're going to make a /v2 of this library soon which has versioned codegen.
x-omitempty, bug fixes
x-omitempty is now supported
$ now works as a property name, it will create a Go variable named DollarSign
More consistent parameter escaping, use older kin-openapi
Some recent bugs have exposed lots of issues around inconsistent encoding and decoding of parameters. With this version, all path parameter values will be url.ParamEscaped and all query parameters will be url.QueryEscaped. The server binding methods perform the inverse operation on all parameters. This changes existing behavior, but parameters with reserved characters were outright broken, so I hope this is ok.
We went back to kin-openapi v0.47.0, since more recent versions create a dependency on Go 1.16, and broke our build. We're not ready to be on the bleeding edge, as lots fo code using this library is using older go versions
Bumped Go requirement to 1.14, as that's what kin-openapi v0.47.0 requires.
ClientWithResponses update, bug fixes
ClientWithResponses API grew out of sync with the Client, so added RequestEditorFn parameters to ClientWithResponses. This might break your code if you pass around function pointers, as the signatures changed by adding variadic args. It shouldn't affect most people.
SecurityDefinitions were non-deterministic in ordering, resulting in random permutations of generated code if you had multiple definitions.
Fix bug in escaping and unescaping query arguments
This release fixes #312 properly, without sending unescaped values to server handlers.
Reverting a recent path handling change in the client
A recent change in path concatenation in generated clients did more harm than it helped, so I'm reverting it until this fragile code can be tested thoroughly and fixed in a better way.
Many pull requests
Thanks to all contributors for your fixes.
Commits
d860c63 Expose openapi3.Schema in the Schema object (#365)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/deepmap/oapi-codegen from 1.5.1 to 1.7.1.
Release notes
Sourced from github.com/deepmap/oapi-codegen's releases.
Commits
d860c63
Expose openapi3.Schema in the Schema object (#365)34b7444
Add support for all integer types (#374)a44f34f
Fix build issues6862a50
Use debug.BuildInfo to produce a version897d86d
Add executable version8e24b29
Remove accidental executable checkin10a2498
Fix/example operationId (#339)837b1f4
Update chi implementation and setup example (#349)ad14913
Useruntime.BindStyledParameterWithLocation
to parse headers (#352)961f811
fix build with kin-openapi 0.61.0 (#348)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)