typesense / typesense-go

Go client for Typesense: https://github.com/typesense/typesense
Apache License 2.0
222 stars 56 forks source link

Bump github.com/deepmap/oapi-codegen from 1.5.1 to 1.6.1 #55

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Bumps github.com/deepmap/oapi-codegen from 1.5.1 to 1.6.1.

Release notes

Sourced from github.com/deepmap/oapi-codegen's releases.

Fix to comments and enum generation

  • Multi line comments are now propagated to generated code correctly (deepmap/oapi-codegen#334)
  • 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
  • fix #329
  • Descriptions not propagate into model comments

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


Dependabot compatibility score

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)
dependabot[bot] commented 3 years ago

Superseded by #57.