Commit a2aa802
committed
refactor: add
- Introduced `toInlinedName` to simplify dot separator replacement with underscores.
- Replaced redundant sanitization logic in `TypeMapping` and `ModelGenerator` with the new utility.toInlinedName utility and replace inline schema name sanitization logic1 parent d3df0f3 commit a2aa802
3 files changed
Lines changed: 10 additions & 9 deletions
File tree
- core/src/main/kotlin/com/avsystem/justworks/core/gen
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
457 | 456 | | |
458 | 457 | | |
459 | 458 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
465 | 462 | | |
466 | 463 | | |
467 | 464 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
43 | 49 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
| 51 | + | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
0 commit comments