forked from loafle/openapi-generator-original
Additional reserved python keywords (#7956)
This commit is contained in:
Regular → Executable
+2
-1
@@ -78,7 +78,8 @@ public class FlaskConnexionCodegen extends DefaultCodegen implements CodegenConf
|
||||
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
|
||||
"assert", "else", "if", "pass", "yield", "break", "except", "import",
|
||||
"print", "class", "exec", "in", "raise", "continue", "finally", "is",
|
||||
"return", "def", "for", "lambda", "try", "self", "None", "True", "False", "nonlocal"));
|
||||
"return", "def", "for", "lambda", "try", "self", "None", "True", "False", "nonlocal",
|
||||
"float", "int", "str", "date", "datetime"));
|
||||
|
||||
// set the output folder here
|
||||
outputFolder = "generated-code/connexion";
|
||||
|
||||
+2
-1
@@ -107,7 +107,8 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
||||
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
|
||||
"assert", "else", "if", "pass", "yield", "break", "except", "import",
|
||||
"print", "class", "exec", "in", "raise", "continue", "finally", "is",
|
||||
"return", "def", "for", "lambda", "try", "self", "nonlocal", "None", "True", "False"));
|
||||
"return", "def", "for", "lambda", "try", "self", "nonlocal", "None", "True", "nonlocal",
|
||||
"float", "int", "str", "date", "datetime"));
|
||||
|
||||
regexModifiers = new HashMap<Character, String>();
|
||||
regexModifiers.put('i', "IGNORECASE");
|
||||
|
||||
Reference in New Issue
Block a user