[Refactor] create Python abstract class#8817
Conversation
| ## RESERVED WORDS | ||
|
|
||
| <ul class="column-ul"> | ||
| <li>all_params</li> |
There was a problem hiding this comment.
Why is all_params a reserved word?
The same question for
- body_params
- form_params
- path_params
- auth_settings
- local_var_files
- query_params
Why not use an underscore prefix like _all_params to prevent name conflicts with params named all_params for all variable names that are not python reserved words?
There was a problem hiding this comment.
Noticed that too. Will file another PR to clean up the reserved word list.
spacether
left a comment
There was a problem hiding this comment.
Looks good; some non-blocking questions.
|
@wing328 does this fix #8420? By eye it looks like the error is happening because we add these files twice https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java#L130 Line 291 in 008ddfb supportingFiles.add(new SupportingFile("__init__model.mustache", packagePath() + File.separatorCh |
|
Don't think it will fix #8420. Will look into it and file a PR if I can come up with a fix. |
|
@wing328 could you please tell what is the current reason to map binary response type to string (not to byte array)? |
titlein the model's propertiesPR checklist
This is important, as CI jobs will verify all generator outputs of your HEAD commit as it would merge with master.
These must match the expectations made by your contribution.
You may regenerate an individual generator by passing the relevant config(s) as an argument to the script, for example
./bin/generate-samples.sh bin/configs/java*.For Windows users, please run the script in Git BASH.
master,5.1.x,6.0.xcc @taxpon (2017/07) @frol (2017/07) @mbohlool (2017/07) @cbornet (2017/09) @kenjones-cisco (2017/11) @tomplus (2018/10) @Jyhess (2019/01) @arun-nalla (2019/11) @spacether (2019/11)