Commit 6e36bfb
committed
test: add parameter roundtrip test infrastructure
Add a full client/server roundtrip test for all parameter styles,
locations, and explode combinations. The test generates a client and
std-http server from a shared spec, sends requests through the
generated client, and verifies the server echoes back the correct
values.
NOTE: Tests do not compile in this commit. Known blocking issues:
- BindFormParam template passes (bool, url.Values) instead of (ParamLocation, string) for query params
- BindFormExplodeParam template passes (ParamLocation, string) instead of (bool, url.Values) for cookie params
- BindDeepObjectExplodeParam and StyleDeepObjectExplodeParam missing from V3 runtime
- Unused err variable in passthrough path handler template1 parent 4afe7b4 commit 6e36bfb
9 files changed
Lines changed: 4777 additions & 0 deletions
File tree
- codegen/internal/test/parameters/roundtrip
- client
- stdhttp
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments