Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update runtime and unstub tests
Runtime 1.4.0 allows us to run almost all parameter tests.
  • Loading branch information
mromaszewicz committed Apr 8, 2026
commit 1fb0889c758da7c1cc2aea06a2bcec1bcc92b780
15 changes: 13 additions & 2 deletions examples/petstore-expanded/stdhttp/api/petstore.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/test/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/labstack/echo/v4 v4.15.1
github.com/oapi-codegen/nullable v1.1.0
github.com/oapi-codegen/oapi-codegen/v2 v2.0.0-00010101000000-000000000000
github.com/oapi-codegen/runtime v1.3.1
github.com/oapi-codegen/runtime v1.4.0
github.com/oapi-codegen/testutil v1.1.0
github.com/stretchr/testify v1.11.1
gopkg.in/yaml.v2 v2.4.0
Expand Down
4 changes: 2 additions & 2 deletions internal/test/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ github.com/nxadm/tail v1.4.11 h1:8feyoE3OzPrcshW5/MJ4sGESc5cqmGkGCWlco4l0bqY=
github.com/nxadm/tail v1.4.11/go.mod h1:OTaG3NK980DZzxbRq6lEuzgU+mug70nY11sMd4JXXHc=
github.com/oapi-codegen/nullable v1.1.0 h1:eAh8JVc5430VtYVnq00Hrbpag9PFRGWLjxR1/3KntMs=
github.com/oapi-codegen/nullable v1.1.0/go.mod h1:KUZ3vUzkmEKY90ksAmit2+5juDIhIZhfDl+0PwOQlFY=
github.com/oapi-codegen/runtime v1.3.1 h1:RgDY6J4OGQLbRXhG/Xpt3vSVqYpHQS7hN4m85+5xB9g=
github.com/oapi-codegen/runtime v1.3.1/go.mod h1:kOdeacKy7t40Rclb1je37ZLFboFxh+YLy0zaPCMibPY=
github.com/oapi-codegen/runtime v1.4.0 h1:KLOSFOp7UzkbS7Cs1ms6NBEKYr0WmH2wZG0KKbd2er4=
github.com/oapi-codegen/runtime v1.4.0/go.mod h1:5sw5fxCDmnOzKNYmkVNF8d34kyUeejJEY8HNT2WaPec=
github.com/oapi-codegen/testutil v1.1.0 h1:EufqpNg43acR3qzr3ObhXmWg3Sl2kwtRnUN5GYY4d5g=
github.com/oapi-codegen/testutil v1.1.0/go.mod h1:ttCaYbHvJtHuiyeBF0tPIX+4uhEPTeizXKx28okijLw=
github.com/oasdiff/yaml v0.0.0-20260313112342-a3ea61cb4d4c h1:7ACFcSaQsrWtrH4WHHfUqE1C+f8r2uv8KGaW0jTNjus=
Expand Down
36 changes: 19 additions & 17 deletions internal/test/issues/issue-2232/issue2232.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions internal/test/parameters/echo/parameters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -505,15 +505,13 @@ func TestParameterBinding(t *testing.T) {
// See https://github.com/oapi-codegen/runtime/issues/116

t.Run("spaceDelimited array", func(t *testing.T) {
t.Skip("spaceDelimited not yet supported in runtime (oapi-codegen/runtime#116)")
result = testutil.NewRequest().Get("/queryDelimited?sa=3%204%205").GoWithHTTPHandler(t, e)
assert.Equal(t, http.StatusOK, result.Code())
assert.EqualValues(t, expectedArray, ts.array)
ts.reset()
})

t.Run("pipeDelimited array", func(t *testing.T) {
t.Skip("pipeDelimited not yet supported in runtime (oapi-codegen/runtime#116)")
result = testutil.NewRequest().Get("/queryDelimited?pa=3|4|5").GoWithHTTPHandler(t, e)
assert.Equal(t, http.StatusOK, result.Code())
assert.EqualValues(t, expectedArray, ts.array)
Expand Down
2 changes: 0 additions & 2 deletions internal/test/parameters/echov5/echov5_param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,8 @@ func testImpl(t *testing.T, handler http.Handler) {
assert.Equal(t, expectedComplexObject, got.DeepObj)
})
t.Run("spaceDelimited", func(t *testing.T) {
t.Skip("spaceDelimited not yet supported in runtime (oapi-codegen/runtime#116)")
})
t.Run("pipeDelimited", func(t *testing.T) {
t.Skip("pipeDelimited not yet supported in runtime (oapi-codegen/runtime#116)")
})
})

Expand Down
Loading
Loading