[Python][Client] Fix delimiter collision issue #5981#6451
[Python][Client] Fix delimiter collision issue #5981#6451wing328 merged 5 commits intoOpenAPITools:masterfrom
Conversation
|
The python (oas3) tests failed. Please refer to https://travis-ci.org/github/OpenAPITools/openapi-generator/builds/691670401 for more information. |
Took a while to debug this. It seems I need to wrap the default and example "enum" property values as well. |
| } else { | ||
| } else { | ||
| LOGGER.warn("Type " + type + " not handled properly in setParameterExampleValue"); | ||
| } |
There was a problem hiding this comment.
FYI. Looks like these changes are not indented properly (2-space vs 4-space). I can fix it later after merging this PR.
There was a problem hiding this comment.
Noted. Thank you!
|
If no further feedback/question on this PR, I'll merge it over the weekend. |
|
Unfortunately, we need to roll back this change as it's causing CircleCI failure after merging into master. Please refer to the PR with the details: #6514 I'll see if I can file a PR to fix the issue in the coming weekend. |
* master: Update Generate.java (#6515) Undo PR #6451 (#6514) Minor enhancement to Python client generator's code format (#6510) [python-experimental] Quicken package loading (#6437) [Python][Client] Fix delimiter collision issue #5981 (#6451) [Java][Jersey2] add petstore integration tests (#6508) UE4 client generator fixes (#6438) Fix docs typos (#6478) [php-laravel] Show required PHP version in docs (#6502) [php-lumen] Show required PHP version in docs (#6501) [Java][Jersey2] Fix typo and script, Log enhancements, HTTP signature, deserialization (#6476) Remove deprecations 5.0 (#6060)
Wrapped the string literals for the default and example values using double quotes (instead of single quotes) to avoid the need to escape any embedded single quotes and also to avoid any invalid syntax errors due to delimiter collision in the generated test code.
Test Files:
Updated sample files after running the following:
Open Issues
If merged, this will resolve #5981
PR checklist
./bin/(or Windows batch scripts under.\bin\windows) to update Petstore samples related to your fix. This is important, as CI jobs will verify all generator outputs of your HEAD commit, and these must match the expectations made by your contribution. You only need to run./bin/{LANG}-petstore.sh,./bin/openapi3/{LANG}-petstore.shif updating the code or mustache templates for a language ({LANG}) (e.g. php, ruby, python, etc).master,4.3.x,5.0.x. Default:master.Note: This PR replaces PR #5982
@spacether @wing328