Commit 8043c5d
authored
fix: Enum option cannot generate enums if values are not valid property names (#1761)
* chore(test): add InvalidPropertyNameChars with enum flag
* fix: Quote the name if it consists entirely of invalid characters and replace only the invalid characters with "_" if they are part of the name
* chore: fix lint error
* chore: add changeset patch md1 parent 61782d7 commit 8043c5d
File tree
3 files changed
+28
-1
lines changed- .changeset
- packages/openapi-typescript
- src/lib
- test
3 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
289 | 297 | | |
290 | 298 | | |
291 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
620 | 624 | | |
621 | 625 | | |
622 | 626 | | |
| |||
660 | 664 | | |
661 | 665 | | |
662 | 666 | | |
| 667 | + | |
| 668 | + | |
663 | 669 | | |
664 | 670 | | |
665 | 671 | | |
| |||
700 | 706 | | |
701 | 707 | | |
702 | 708 | | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
703 | 717 | | |
704 | 718 | | |
705 | 719 | | |
| |||
0 commit comments