File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 2
2
3
3
import javax .annotation .Nullable ;
4
4
import java .io .File ;
5
+ import java .io .IOException ;
5
6
import java .io .UnsupportedEncodingException ;
7
+ import java .io .Writer ;
6
8
import java .net .URLDecoder ;
7
9
import java .nio .charset .StandardCharsets ;
8
10
import java .util .*;
9
11
import java .util .Map .Entry ;
10
12
import java .util .regex .Matcher ;
11
13
import java .util .regex .Pattern ;
12
14
15
+ import com .samskivert .mustache .Mustache ;
16
+ import com .samskivert .mustache .Template ;
13
17
import io .swagger .models .properties .UntypedProperty ;
14
18
import org .apache .commons .lang3 .ObjectUtils ;
15
19
import org .apache .commons .lang3 .StringEscapeUtils ;
@@ -174,6 +178,13 @@ public void processOpts() {
174
178
} else {
175
179
setIgnoreImportMapping (defaultIgnoreImportMappingOption ());
176
180
}
181
+
182
+ additionalProperties .put ("toLowerCase" , new Mustache .Lambda () {
183
+ @ Override
184
+ public void execute (Template .Fragment fragment , Writer writer ) throws IOException {
185
+ writer .write (fragment .execute ().toLowerCase ());
186
+ }
187
+ });
177
188
}
178
189
179
190
// override with any special post-processing for all models
You can’t perform that action at this time.
0 commit comments