Commit 6090d5e
authored
fix: revert oapi to v2.6.0 (#209)
<!-- CURSOR_SUMMARY -->
> [!NOTE]
> **Medium Risk**
> Regenerates large portions of `lib/oapi/oapi.go`, including request
parameter encoding and server parameter binding helpers, which could
subtly change runtime behavior. Main risk is mismatched query/path
parsing or validation differences after the codegen upgrade.
>
> **Overview**
> Regenerates `lib/oapi/oapi.go` with `oapi-codegen` v2.6.0, updating
the embedded swagger payload, adding `Valid()` helpers for multiple
enums, and switching generated request/handler parameter styling/binding
to the newer `runtime.*WithOptions` APIs (with explicit `Type`/`Format`,
e.g. UUIDs and booleans).
>
> Simplifies the `oapi-generate` Makefile target by dropping the
`patch_strict_optional_json` step and deletes
`scripts/oapi/patch_strict_optional_json`, leaving only the SSE methods
patch as a post-processing step.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
e270add. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent e39b5c2 commit 6090d5e
3 files changed
Lines changed: 381 additions & 352 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
| |||
0 commit comments