File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
modules/swagger-codegen/src/main/java/com/wordnik/swagger/codegen Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ public interface CodegenConfig {
22
22
String toApiVarName (String name );
23
23
String toModelName (String name );
24
24
String toParamName (String name );
25
+ String escapeText (String text );
25
26
String escapeReservedWord (String name );
26
27
String getTypeDeclaration (Property p );
27
28
String getTypeDeclaration (String name );
Original file line number Diff line number Diff line change @@ -67,7 +67,11 @@ public List<File> generate() {
67
67
config .additionalProperties ().put ("appVersion" , info .getVersion ());
68
68
}
69
69
if (info .getDescription () != null ) {
70
- config .additionalProperties ().put ("appDescription" , info .getDescription ());
70
+ System .out .println (info .getDescription ());
71
+ System .out .println ("escaped" );
72
+ System .out .println (config .escapeText (info .getDescription ()));
73
+ config .additionalProperties ().put ("appDescription" ,
74
+ config .escapeText (info .getDescription ()));
71
75
}
72
76
if (info .getContact () != null ) {
73
77
Contact contact = info .getContact ();
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ public class SpringfoxServerCodegen extends JavaClientCodegen implements Codegen
20
20
protected String configPackage = "" ;
21
21
22
22
public CodegenType getTag () {
23
- return CodegenType .OTHER ;
23
+ return CodegenType .SERVER ;
24
24
}
25
25
26
26
public String getName () {
You can’t perform that action at this time.
0 commit comments