Skip to content

Tags: oapi-codegen/nethttp-middleware

Tags

v1.1.2

Toggle v1.1.2's commit message
fix(deps)!: update module github.com/getkin/kin-openapi to v0.132.0

This is flagged as a breaking change as it could break consumers, as
`kin-openapi` requires a minimum source compatibility (via `go`) of
1.22.

This is still a deprecated version of Go (which ran out of support on
2025-02-11), so is still outdated, and therefore shouldn't be /that/
breaking.

However, we should make it clear.

This also fixes an issue noted in [0] and [1], where the request body
was not available to handlers after being processed by the
`openapi3filter`.

[0]: https://togithub.com/oapi-codegen/nethttp-middleware/pull/22
[1]: https://togithub.com/getkin/kin-openapi/issues/743

v1.1.1

Toggle v1.1.1's commit message
fix: correct error code

This error path shouldn't be happening very often, but we should still
correct the error code used.

v1.1.0

Toggle v1.1.0's commit message
refactor: migrate `error` to a method parameter, not part of `ErrorHa…

…ndlerOpts`

While writing the documentation for this, it didn't feel quite right to
note that the `error` wasn't part of the method signature, despite it
being very important for the actual handling of errors.

v1.0.2

Toggle v1.0.2's commit message
fix(deps): update module github.com/getkin/kin-openapi to v0.124.0

v1.0.1

Toggle v1.0.1's commit message
Correct package name

I thought I'd already done this 😅

v1.0.0

Toggle v1.0.0's commit message
Add `net/http` validation

To show how one may use this middleware with a plain `net/http` server.