Commit 313aa80
oneOf/anyOf support (including discriminator) (#471)
* Implemented oneOf/anyOf support
* Fix travis build by regenerating templates.gen.go
* go mod tidy after master merge
* Reworked code to support fixed properties with oneOf, fixed generating new type for array items with union or additional properties, added some new tests for union, fixed README
* Regenerate tests after merge
* Fixed type generation for combinations of oneOf and additionalProperties and allOf
* Regenerate components.gen.go after merge
* Regenerate components.gen.go after merge
Co-authored-by: ilya.bogdanov <ilya.bogdanov@ispringsolutions.com>
Co-authored-by: ilya.bogdanov <ilya.bogdanov@ispring.com>1 parent 60ca161 commit 313aa80
File tree
7 files changed
+1572
-33
lines changed- internal/test/components
- pkg/codegen
- templates
7 files changed
+1572
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
321 | 336 | | |
322 | 337 | | |
323 | 338 | | |
| |||
611 | 626 | | |
612 | 627 | | |
613 | 628 | | |
614 | | - | |
615 | | - | |
616 | | - | |
617 | | - | |
618 | | - | |
619 | | - | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | | - | |
624 | | - | |
625 | | - | |
626 | | - | |
627 | | - | |
628 | | - | |
629 | | - | |
630 | | - | |
631 | 629 | | |
632 | 630 | | |
633 | 631 | | |
| |||
0 commit comments