This repository was archived by the owner on Apr 14, 2026. It is now read-only.
Commit 45a84e1
Split runtime into types/params/helpers sub-packages
Restructure the runtime package generation from a single monolithic file
into three sub-packages for better organization and independent imports:
- runtime/types: custom Go types (Date, Email, UUID, File, Nullable)
- runtime/params: parameter serialization/deserialization functions
- runtime/helpers: utility functions (MarshalForm)
Key changes:
- Replace single RuntimePrefix with category-specific prefixes
(RuntimeParamsPrefix, RuntimeTypesPrefix, RuntimeHelpersPrefix)
- Add {{ typesPrefix }} template function to param templates so
params can reference types.Date/types.DateFormat across packages
- Update all generators and templates for split prefixes
- GenerateRuntime() now returns RuntimeOutput with three fields
- CLI --generate-runtime creates three sub-directories
- Restructure internal/codegen to codegen/internal with public API
- Update webhook example to use shared runtime package
- Document runtime-package, webhook, and callback config options
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent c7b1de1 commit 45a84e1
415 files changed
Lines changed: 3926 additions & 863 deletions
File tree
- experimental
- cmd/oapi-codegen
- codegen
- internal
- templates
- files
- client
- helpers
- initiator
- params
- server
- chi
- echo-v4
- echo
- fiber
- gin
- gorilla
- iris
- stdhttp
- types
- test
- helpers
- genhelpers
- types
- gentypes
- test
- comprehensive
- output
- default_values
- output
- external_ref
- packagea
- packageb
- files
- name_conflict_resolution
- output
- nested_aggregate
- output
- previous_version
- all_of
- output
- any_of
- inline
- output
- param
- output
- components
- output
- extensions/x_order
- output
- issues
- issue_1029
- output
- issue_1039
- output
- issue_1087
- deps
- output
- output
- issue_1093
- output
- child
- parent
- issue_1127
- output
- issue_1168
- output
- issue_1180
- output
- issue_1182
- pkg1
- output
- pkg2
- output
- issue_1189
- output
- issue_1208_1209
- output
- issue_1212
- pkg1
- output
- pkg2
- output
- issue_1219
- output
- issue_1298
- output
- issue_1378
- issue_1397
- output
- issue_1429
- output
- issue_1496
- output
- issue_1561
- output
- issue_1710
- output
- issue_1767
- output
- issue_1825
- packageA
- output
- spec
- output
- issue_193
- output
- issue_1957
- output
- issue_2031
- output
- issue_2102
- output
- issue_240
- output
- issue_312
- output
- issue_502
- output
- issue_52
- output
- issue_579
- output
- issue_609
- output
- issue_697
- output
- issue_775
- output
- issue_832
- output
- issue_936
- output
- issue_head_digit_operation_id
- output
- issue_illegal_enum_names
- output
- issue_removed_external_ref
- output
- spec_base
- spec_ext
- outputoptions/name_normalizer
- output
- parameters
- output
- schemas
- output
- examples
- petstore-expanded
- chi/server
- echo-v4/server
- echo/server
- fiber/server
- gin/server
- gorilla/server
- iris/server
- stdhttp/server
- webhook
- runtime
- helpers
- params
- types
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 | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
33 | 52 | | |
34 | 53 | | |
35 | 54 | | |
36 | 55 | | |
37 | 56 | | |
38 | 57 | | |
39 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
40 | 74 | | |
41 | 75 | | |
42 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
34 | 71 | | |
35 | 72 | | |
36 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| |||
Lines changed: 60 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
23 | 34 | | |
24 | 35 | | |
25 | 36 | | |
| |||
102 | 113 | | |
103 | 114 | | |
104 | 115 | | |
105 | | - | |
| 116 | + | |
106 | 117 | | |
107 | 118 | | |
108 | 119 | | |
| |||
140 | 151 | | |
141 | 152 | | |
142 | 153 | | |
143 | | - | |
| 154 | + | |
144 | 155 | | |
145 | 156 | | |
146 | 157 | | |
| |||
171 | 182 | | |
172 | 183 | | |
173 | 184 | | |
174 | | - | |
| 185 | + | |
175 | 186 | | |
176 | 187 | | |
177 | 188 | | |
| |||
202 | 213 | | |
203 | 214 | | |
204 | 215 | | |
205 | | - | |
| 216 | + | |
206 | 217 | | |
207 | 218 | | |
208 | 219 | | |
| |||
237 | 248 | | |
238 | 249 | | |
239 | 250 | | |
240 | | - | |
| 251 | + | |
241 | 252 | | |
242 | 253 | | |
243 | 254 | | |
| |||
288 | 299 | | |
289 | 300 | | |
290 | 301 | | |
291 | | - | |
| 302 | + | |
292 | 303 | | |
293 | 304 | | |
294 | 305 | | |
| |||
329 | 340 | | |
330 | 341 | | |
331 | 342 | | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
337 | 364 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | 365 | | |
349 | | - | |
350 | | - | |
351 | | - | |
| 366 | + | |
| 367 | + | |
352 | 368 | | |
353 | | - | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
354 | 373 | | |
355 | | - | |
356 | | - | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
357 | 384 | | |
358 | 385 | | |
359 | 386 | | |
| |||
397 | 424 | | |
398 | 425 | | |
399 | 426 | | |
400 | | - | |
| 427 | + | |
| 428 | + | |
401 | 429 | | |
402 | 430 | | |
403 | 431 | | |
| |||
412 | 440 | | |
413 | 441 | | |
414 | 442 | | |
415 | | - | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
416 | 446 | | |
417 | 447 | | |
418 | 448 | | |
| |||
0 commit comments