Commit 98fc410
committed
feat(typescript): add sortModelPropertiesByName helper method
Add a protected helper method to sort model properties alphabetically,
ensuring deterministic code generation across all TypeScript generators.
The method sorts vars, allVars, requiredVars, optionalVars, readOnlyVars,
readWriteVars, and parentVars by property name.1 parent 9fa18d0 commit 98fc410
1 file changed
Lines changed: 18 additions & 0 deletions
File tree
- modules/openapi-generator/src/main/java/org/openapitools/codegen/languages
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
1026 | 1041 | | |
1027 | 1042 | | |
1028 | 1043 | | |
| |||
1044 | 1059 | | |
1045 | 1060 | | |
1046 | 1061 | | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
1047 | 1065 | | |
1048 | 1066 | | |
1049 | 1067 | | |
| |||
0 commit comments