Skip to content
This repository has been archived by the owner on Dec 1, 2024. It is now read-only.

Bump github.com/deepmap/oapi-codegen from 1.11.0 to 1.12.4 #285

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Dec 2, 2022

Bumps github.com/deepmap/oapi-codegen from 1.11.0 to 1.12.4.

Release notes

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

Ensure Scopes context key are generated as valid Go names

As highlighted by @​KenxinKun in deepmap/oapi-codegen#874, gorilla/mux (as well as some other servers) were affected by an invalid Scopes context key.

This makes them valid Go names.

Fix the generated error handling for Gin

In v1.12.0 we added support for custom error handling to be used in the generated Gin code.

Unfortunately, we didn't produce the right code, so this would cause (compilation) errors.

Fix big issue with marshaling binary strings

v1.12.0 introduced a File type which intercepts schemas of type:string, format:binary, but it incorrectly implemented the json.Marshaler interface and was lacking tests to catch the problem. This version fixes the marshaling of fields of that type.

Prior versions of oapi-codegen turned those into a []byte, and you can still annotate your spec with x-go-type if you need []byte

Fix an issue with command line parsing

  • The -o flag specifying the output filename was being ignore in very simple invocations of oapi-codegen without a configuration file. This is fallout from trying to be compatible with old and new style configs.

Many bug fixes

Major changes to functionality

  • In the last release, we changed the configuration file format to a new syntax, and added flags to read the old version, but it turns out that this default-on change broke a lot of automation, sorry about that. In this release, we've done our best to auto-detect the configuration version, so both styles of config options should work. The explicit version selection flags have not been removed.
  • Gorilla router (deepmap/oapi-codegen#594)
  • "strict" server generation, meaning one which is much more pedantic about input and output types, which allows for making API clients and servers that look more like Go functions than HTTP handlers (deepmap/oapi-codegen#499)
  • Fields can be marked with x-json-ignore to omit in JSON serialization (deepmap/oapi-codegen#390)
  • Many fixes to unions for oneOf and anyOf handling, thank you committers.
  • Enums can be prefixed with their typename in all cases, versus only on collisions previously. This is a configurable option (deepmap/oapi-codegen#662)
  • The Client interface in generated code was named awfully generically. You can now override the name (deepmap/oapi-codegen#788)
  • Generate code can be optionally formatted using more initialisms. It's default-off to not break existing code (deepmap/oapi-codegen#749)
  • Gin code can be configured with a custom error handler, versus generating error responses inline. Default behavior is the same as before (deepmap/oapi-codegen#587)
  • Gin middleware evaluation order can be reversed to be consistent with common Gin usage, it's default-off to not break previous behavior. ( deepmap/oapi-codegen#787)

Everything that has changed

This is a very large release with many bug fixes. Thanks to all contributors.

... (truncated)

Commits
  • a444d30 Merge pull request #881 from KenxinKun/fix-unsanitised-template
  • 55b0905 Fixes missing unsanitised templates
  • 5a33791 Merge pull request #877 from KenxinKun/gorilla-fix-context-scope-variable-tem...
  • d14917d Fixes missing sanitation of context key variable in gorilla server
  • 4ec8015 Merge pull request #854 from deepmap/dependabot/go_modules/golang.org/x/tools...
  • 9b992be Gitignore bin
  • fe8408c Bump golang.org/x/tools from 0.2.0 to 0.3.0
  • 40890b2 Merge pull request #722 from jamietanna/chore/golangci-lint
  • 0138e13 Fix error handler for required query parameters (#857)
  • 5a103c5 Add linting with golangci-lint
  • Additional commits viewable in compare view

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)

Bumps [github.com/deepmap/oapi-codegen](https://github.com/deepmap/oapi-codegen) from 1.11.0 to 1.12.4.
- [Release notes](https://github.com/deepmap/oapi-codegen/releases)
- [Commits](oapi-codegen/oapi-codegen@v1.11.0...v1.12.4)

---
updated-dependencies:
- dependency-name: github.com/deepmap/oapi-codegen
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Dec 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants