Commit 365419e
authored
* Fix x_enum_varnames ignored because class variable name was used insteaad of its alias
* Keep existing behavior when title isn't defined and the enum's type can be inferred and used as name
* Improve fix for unveiled incorrect behavior
---------
Co-authored-by: Antonio Spadaro <9268789+ilovelinux@users.noreply.github.com>
1 parent 4661406 commit 365419e
2 files changed
Lines changed: 4 additions & 7 deletions
File tree
- src/datamodel_code_generator/parser
- tests/data/expected/main/jsonschema
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
854 | 854 | | |
855 | 855 | | |
856 | 856 | | |
857 | | - | |
858 | | - | |
859 | 857 | | |
860 | 858 | | |
861 | 859 | | |
| |||
902 | 900 | | |
903 | 901 | | |
904 | 902 | | |
905 | | - | |
906 | | - | |
| 903 | + | |
907 | 904 | | |
908 | 905 | | |
909 | 906 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
0 commit comments