File tree 3 files changed +7
-0
lines changed
main/java/cd/connect/openapi
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change
1
+ .idea
1
2
target
3
+ * .iml
Original file line number Diff line number Diff line change 73
73
<!-- <inputSpec>${project.basedir}/swagger.json</inputSpec>-->
74
74
<generatorName >dart2-api</generatorName >
75
75
<typeMappings >int-or-string=IntOrString</typeMappings >
76
+ <reservedWordsMappings >user_id=myUserId</reservedWordsMappings >
76
77
<importMappings >IntOrString=./int_or_string.dart</importMappings >
77
78
<enablePostProcessFile >true</enablePostProcessFile >
78
79
<additionalProperties >
Original file line number Diff line number Diff line change @@ -114,6 +114,10 @@ public String escapeReservedWord(String name) {
114
114
115
115
@ Override
116
116
public String toVarName (String name ) {
117
+ if (reservedWordsMappings .containsKey (name )) {
118
+ return reservedWordsMappings ().get (name );
119
+ }
120
+
117
121
name = name .replaceAll ("-" , "_" )
118
122
.replaceAll ("\\ $" , "__" )
119
123
.replaceAll ("\\ ^" , "__" )
You can’t perform that action at this time.
0 commit comments