forked from loafle/openapi-generator-original
fix python flask to handle comment block
This commit is contained in:
parent
2464633368
commit
8a3c2e754b
@ -336,4 +336,16 @@ public class FlaskConnexionCodegen extends DefaultCodegen implements CodegenConf
|
||||
// addPet => add_pet
|
||||
return underscore(operationId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String escapeQuotationMark(String input) {
|
||||
// remove ' to avoid code injection
|
||||
return input.replace("'", "");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String escapeUnsafeCharacters(String input) {
|
||||
// remove multiline comment
|
||||
return input.replace("'''", "'_'_'");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user