mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-07-04 22:50:53 +00:00
Additional reserved python keywords (#7956)
This commit is contained in:
parent
74fa9418d8
commit
240aad8686
3
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/FlaskConnexionCodegen.java
Normal file → Executable file
3
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/FlaskConnexionCodegen.java
Normal file → Executable file
@ -78,7 +78,8 @@ public class FlaskConnexionCodegen extends DefaultCodegen implements CodegenConf
|
|||||||
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
|
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
|
||||||
"assert", "else", "if", "pass", "yield", "break", "except", "import",
|
"assert", "else", "if", "pass", "yield", "break", "except", "import",
|
||||||
"print", "class", "exec", "in", "raise", "continue", "finally", "is",
|
"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
|
// set the output folder here
|
||||||
outputFolder = "generated-code/connexion";
|
outputFolder = "generated-code/connexion";
|
||||||
|
@ -107,7 +107,8 @@ public class PythonClientCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
|
"and", "del", "from", "not", "while", "as", "elif", "global", "or", "with",
|
||||||
"assert", "else", "if", "pass", "yield", "break", "except", "import",
|
"assert", "else", "if", "pass", "yield", "break", "except", "import",
|
||||||
"print", "class", "exec", "in", "raise", "continue", "finally", "is",
|
"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 = new HashMap<Character, String>();
|
||||||
regexModifiers.put('i', "IGNORECASE");
|
regexModifiers.put('i', "IGNORECASE");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user