Commit bba4b7e
refactor: replace per-style param functions with monolithic dispatchers
Replace 14 per-style bind/style files with 2 monolithic dispatchers
(BindParameter, BindQueryParameter, BindRawQueryParameter, StyleParameter)
that take the style as a field in ParameterOptions and dispatch internally.
Add Style and AllowReserved fields to ParameterOptions.
Add MissingRequiredParameterError typed error for required param detection.
Delete ComputeStyleFunc/ComputeBindFunc — templates hardcode function names.
Fix Fiber receiver template to use url.ParseQuery instead of c.Queries().
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 51d13f4 commit bba4b7e
64 files changed
Lines changed: 9141 additions & 6331 deletions
File tree
- codegen/internal
- runtime/params
- templates/files
- sender
- server
- chi
- echo-v4
- echo
- fiber
- gin
- gorilla
- iris
- stdhttp
- test
- name_conflict_resolution/output
- parameters
- all_styles/output
- encoding/output
- precedence/output
- roundtrip
- client
- stdhttp
- webhooks/output
- examples
- callback
- petstore-expanded
- chi/server
- echo-v4/server
- echo/server
- fiber/server
- gin/server
- gorilla/server
- iris/server
- stdhttp/server
- webhook
- runtime/params
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | 234 | | |
245 | 235 | | |
246 | 236 | | |
| |||
253 | 243 | | |
254 | 244 | | |
255 | 245 | | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | 246 | | |
260 | 247 | | |
261 | 248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | 134 | | |
139 | 135 | | |
140 | 136 | | |
| |||
195 | 191 | | |
196 | 192 | | |
197 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
198 | 203 | | |
199 | 204 | | |
200 | 205 | | |
| |||
270 | 275 | | |
271 | 276 | | |
272 | 277 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | 278 | | |
289 | 279 | | |
290 | 280 | | |
| |||
0 commit comments