Commit 9445b94
authored
Add --all-exports-scope and --all-exports-collision-strategy options for recursive exports (#2588)
* Add support for all exports scope and collision strategy in __init__.py generation
* Add support for recursive all exports scope in __init__.py generation
* Add support for recursive all exports scope with collision error handling
* Add support for all exports scope with no child exports handling1 parent 40adf78 commit 9445b94
65 files changed
Lines changed: 1270 additions & 50 deletions
File tree
- docs
- src/datamodel_code_generator
- parser
- tests
- data
- expected/main
- jsonschema/all_exports_multi_file
- openapi
- all_exports_no_child
- parent
- child
- modular_all_exports_children_docstring
- foo
- nested
- woo
- modular_all_exports_children
- foo
- nested
- woo
- modular_all_exports_docstring
- nested
- woo
- modular_all_exports_recursive_full_prefix
- foo
- nested
- woo
- modular_all_exports_recursive
- foo
- nested
- woo
- modular_all_exports
- nested
- woo
- jsonschema/all_exports_multi_file
- openapi
- main
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 | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
446 | 455 | | |
447 | 456 | | |
448 | 457 | | |
| |||
490 | 499 | | |
491 | 500 | | |
492 | 501 | | |
493 | | - | |
494 | | - | |
495 | 502 | | |
496 | 503 | | |
497 | 504 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
438 | 447 | | |
439 | 448 | | |
440 | 449 | | |
| |||
482 | 491 | | |
483 | 492 | | |
484 | 493 | | |
485 | | - | |
486 | | - | |
487 | 494 | | |
488 | 495 | | |
489 | 496 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
249 | 273 | | |
250 | 274 | | |
251 | 275 | | |
| |||
375 | 399 | | |
376 | 400 | | |
377 | 401 | | |
378 | | - | |
| 402 | + | |
| 403 | + | |
379 | 404 | | |
380 | 405 | | |
381 | 406 | | |
| |||
613 | 638 | | |
614 | 639 | | |
615 | 640 | | |
616 | | - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
617 | 646 | | |
618 | 647 | | |
619 | 648 | | |
| |||
704 | 733 | | |
705 | 734 | | |
706 | 735 | | |
| 736 | + | |
| 737 | + | |
707 | 738 | | |
708 | 739 | | |
709 | 740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
241 | 243 | | |
242 | 244 | | |
243 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
244 | 250 | | |
245 | 251 | | |
246 | 252 | | |
| |||
289 | 295 | | |
290 | 296 | | |
291 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
292 | 305 | | |
293 | 306 | | |
294 | 307 | | |
| |||
337 | 350 | | |
338 | 351 | | |
339 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
340 | 363 | | |
341 | 364 | | |
342 | 365 | | |
| |||
425 | 448 | | |
426 | 449 | | |
427 | 450 | | |
428 | | - | |
| 451 | + | |
| 452 | + | |
429 | 453 | | |
430 | 454 | | |
431 | 455 | | |
| |||
827 | 851 | | |
828 | 852 | | |
829 | 853 | | |
830 | | - | |
| 854 | + | |
| 855 | + | |
831 | 856 | | |
832 | 857 | | |
833 | 858 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
294 | 296 | | |
295 | 297 | | |
296 | 298 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
300 | 313 | | |
301 | 314 | | |
302 | 315 | | |
| |||
0 commit comments