@@ -176,7 +176,7 @@ public List<File> generate() {
176
176
config .additionalProperties ().put ("termsOfService" , config .escapeText (info .getTermsOfService ()));
177
177
}
178
178
}
179
-
179
+
180
180
if (swagger .getVendorExtensions () != null ) {
181
181
config .vendorExtensions ().putAll (swagger .getVendorExtensions ());
182
182
}
@@ -279,21 +279,21 @@ private Model getParent(Model model) {
279
279
Map <String , Object > models = processModels (config , modelMap , definitions );
280
280
models .put ("classname" , config .toModelName (name ));
281
281
models .putAll (config .additionalProperties ());
282
-
282
+
283
283
allProcessedModels .put (name , models );
284
284
285
285
} catch (Exception e ) {
286
286
throw new RuntimeException ("Could not process model '" + name + "'" , e );
287
287
}
288
288
}
289
-
289
+
290
290
// post process all processed models
291
291
allProcessedModels = config .postProcessAllModels (allProcessedModels );
292
-
292
+
293
293
// generate files based on processed models
294
294
for (String name : allProcessedModels .keySet ()) {
295
295
Map <String , Object > models = (Map <String , Object >)allProcessedModels .get (name );
296
-
296
+
297
297
try {
298
298
//don't generate models that have an import mapping
299
299
if (config .importMapping ().containsKey (name )) {
@@ -393,7 +393,7 @@ public int compare(CodegenOperation one, CodegenOperation another) {
393
393
operation .put ("classname" , config .toApiName (tag ));
394
394
operation .put ("classVarName" , config .toApiVarName (tag ));
395
395
operation .put ("importPath" , config .toApiImport (tag ));
396
-
396
+
397
397
if (!config .vendorExtensions ().isEmpty ()) {
398
398
operation .put ("vendorExtensions" , config .vendorExtensions ());
399
399
}
@@ -631,6 +631,7 @@ private File processTemplateToFile(Map<String, Object> templateData, String temp
631
631
String templateFile = getFullTemplateFile (config , templateName );
632
632
String template = readTemplate (templateFile );
633
633
Template tmpl = Mustache .compiler ()
634
+ .escapeHTML (false )
634
635
.withLoader (new Mustache .TemplateLoader () {
635
636
@ Override
636
637
public Reader getTemplate (String name ) {
@@ -704,7 +705,7 @@ public void processOperation(String resourcePath, String httpMethod, Operation o
704
705
tags = new ArrayList <String >();
705
706
tags .add ("default" );
706
707
}
707
-
708
+
708
709
/*
709
710
build up a set of parameter "ids" defined at the operation level
710
711
per the swagger 2.0 spec "A unique parameter is defined by a combination of a name and location"
0 commit comments