Uh oh!
There was an error while loading. Please reload this page.
C additional properties fix #4289 - #4292
Conversation
wing328
commented
Oct 29, 2019
cc @zhemant |
wing328
commented
Oct 29, 2019
Travis CI reports the following error: |
* Add arduino.cc to the user list * Add Arduino logo * add logo
* Fixes incorrect query header collection constants The OpenApi codegen converts OpenApi v2 documents into an OpenApi v3 representation. The query parameter collection formats are squeezed into different values from the raw OpenApi 2 collection format values. For example: csv -> space See: DefaultCodegen#getCollectionFormat * Updates kotlin samples
michelealbano
commented
Oct 29, 2019
How can I solve this? What is unit-manual-PetAPI? |
wing328
commented
Oct 29, 2019
I think those are unit tests. I noticed that you've commented out part of the CMakefile: https://github.com/OpenAPITools/openapi-generator/pull/4292/files#diff-bc97688208c58aee3233d8e276aef6ecR67 Not sure if it's related. |
michelealbano
commented
Oct 29, 2019
The changed to the test files were done automatically, by means of : |
michelealbano
commented
Oct 29, 2019
I re-cloned a fresh master, mvn install is fine, when I do ./bin/c-petstore.sh the amples/client/petstore/c/CMakeLists.txt gets like win328 says, thus samples/client/petstore/c/build-and-test.bash will try to execute files that are not compiled. I will open a bug report. |
zhemant
commented
Oct 29, 2019
I know how to fix this, I fixed it in the one merge request, but couldnt update some other stuff so it was closed. I will create another merge request with a fix |
zhemant
commented
Oct 29, 2019
#4312 should fix the issue |
michelealbano
commented
Oct 30, 2019
Thank you zhemant! |
* Update build-and-test.bash add check for non autogenerated test file * Update README.md.mustache Add instructions on how to test petstore sample manual tests. * remove petstore sample from readme
* [dart-dio] Correctly handles import of Uint8List - updates dio and built_value dependencies * [dart-dio] Updates sample
…g consumer TS project (OpenAPITools#4230) * remove unused file * build(package.json): update node and ts * remove ref to ambient declaration * remove other ref to ambient declaration * remove all references to custom.d.ts, rebuild * regenerate typescript axios samples
* [Python] Remove redundant else condition * Add indentation * Reduce extra indent * Avoid longer than 79 chars * Remove trailing space after response_body * [Python] Fix pep8 violation in imports * Revert "[Python] Fix pep8 violation in imports" This reverts commit bc69aaa.
OpenAPITools#4310) * feat(documentation): Adding model documentation * feat(documentation): Adding model documentation
…APITools#4306) * feat(documentation): Adding model documentation * feat(documentation): Adding model documentation * feat(documentation): Adding model documentation * feat(documentation): Adding model documentation
* fix(license): Fixing the license information * fix(license): Fixing the license information
This reverts commit 3f6c5b8. Better to consider one problem at a time.
…ano/openapi-generator into CadditionalProperties Merged with new generated test files, after improvements of Pull Request OpenAPITools#4312. Removed anything not related to C additional properties.
zhemant
commented
Oct 30, 2019
@michelealbano which version of openapi spec are you using with the generator v2 or v3? |
michelealbano
commented
Oct 30, 2019
@zhemant I am using v3 |
zhemant
commented
Oct 30, 2019
@michelealbano are you on gitter? May be we could add more updated parameters support to C if you are interested in helping out. |
michelealbano
commented
Oct 30, 2019
I am very interested. I have opened an issue regarding enums, and I will submit a PR tomorrow. I should also add _with_HTTP_headers methods in the future |
zhemant
commented
Oct 30, 2019
I will also recommend modifying the values in the enum to something like {{projectName}}{{classVarName}}{{{value}}} which will make them unique in the complete project, because when you have two enums with the same values, C creates problem in compiling. I have faced these issues. |
michelealbano
commented
Oct 31, 2019
There is also the matter of the enum itself, since it generates _ToString and _FromString functions. Let us talk on gitter. |
wing328
commented
Nov 1, 2019
Please use Slack instead as we've made the switch already. |
michelealbano
commented
Nov 1, 2019
I did another pull request with a cleaner set of commits |
Solved #4289.
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.1.x,5.0.x. Default:master.