Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP-Lumen] Lumen 5.6 support #114

Closed
wants to merge 9,340 commits into from
Closed

[PHP-Lumen] Lumen 5.6 support #114

wants to merge 9,340 commits into from

Conversation

Lv-Yi
Copy link

@Lv-Yi Lv-Yi commented May 20, 2018

PR checklist

  • Read the contribution guidelines.
  • Ran the shell script under ./bin/ to update Petstore sample so that CIs can verify the change. (For instance, only need to run ./bin/{LANG}-petstore.sh and ./bin/security/{LANG}-petstore.sh if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in .\bin\windows\.
  • Filed the PR against the correct branch: Default: master.
  • Copied the technical committee to review the pull request if your PR is targeting a particular programming language.

Description of the PR

To support Lumen 5.6.
Fix of #7530(swagger-api/swagger-codegen#7530) and #6963 (swagger-api/swagger-codegen#6963).

Note (as stated in modules/openapi-generator/src/main/resources/lumen/readme.md ): Excute 'composer update' for the first run, which will generate vendor/autoload.php and import necessary dependencies. Otherwise there would be errors during http service or model migration.

wing328 and others added 30 commits April 26, 2018 13:17
* update php samples with oas2 before enabling ci test

* deleted unused php files
* update erlang server samples with petstore oas2

* fix compilation in erlang server
* test erlang client, server petstore

* rename tests, replace tab

* install rebar3 in shippable ci
* update c# petstore with oas2

* add csharp tests
* update ts angular 4 from codegen2x

* update ts angular v4 with petstore oas2

* restore ts agnular 4.3 from codegen2x

* update ts angular 4.3 with petstore oas2
* update ts fetch (default) with oas2

* update ts fetech npm with petstore oas2

* update ts fetch interface (petstore oas2)

* update ts fetch es6 (petstore oas2)
* update ts inversify with petstore oas2

* update typescript-aurelia petstore with oas2

* update ts jquery with oas2
* ArraySchema should not be included in aliases

* Update php sample (OAS2)
* add scripts for ts oas3 petstore

* remove json files

* update ts jquery with oas3 petstore

* update ts inversify, fix file mapping

* update ts fetch wtih oas3 (no diff), fix script
* update php symfony with oas2 petstore

* update php symfony with oas3 petstore
* update php silex with oas2 petstore

* update php silex with oas3 petstore
* update php slim server petstore with oas2

* update php slim petstore with oas3 (no diff)
* update php ze-ph samples with oas2

* update zeph samples with oas3
Use vendor extension in Operation to set the body parameter name
@wing328
Copy link
Member

wing328 commented May 21, 2018

@Lv-Yi Please ignore the CircleCI errors for the time being. It occasionally passes.

@@ -4,7 +4,7 @@
"version": "{{artifactVersion}}",
{{/artifactVersion}}
"description": "{{description}}",
"keywords": [
"keywords": ["framework", "laravel", "lumen",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is better to align the keywords vertical like below:

    "keywords": [
         "framework",
         "laravel",
         "lumen",
         "openapi",

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated. thanks!

@ackintosh
Copy link
Contributor

@Lv-Yi Would you please update the sample with bin/lumen-petstore-server.sh ?

@Lv-Yi
Copy link
Author

Lv-Yi commented May 23, 2018

@ackintosh would you mind share more details on what needed in the sample with bin/lumen-petstore-server.sh ?

@ackintosh
Copy link
Contributor

@Lv-Yi I'm sorry I didn't explain it enough. 💦
The checkbox(Ran the shell script under ./bin/....) has marked as done, but the example folder (samples/server/petstore/lumen/) is not seems updated. 👀

@jmini
Copy link
Member

jmini commented May 24, 2018

@ackintosh If you are interested, I am about to add an automatic check with Shippable CI that ensure that the samples/ folder is up to date. (see issue #80). If you think that the PHP scripts should be in the list of checked scripts, please let a comment.

@Lv-Yi
Copy link
Author

Lv-Yi commented May 26, 2018

@ackintosh Yes I did run the script and seems no issues. Should the changes in sample dir also be commited?

@wing328
Copy link
Member

wing328 commented May 26, 2018 via email

@Lv-Yi
Copy link
Author

Lv-Yi commented May 26, 2018

@ackintosh @wing328 FYI. The petstore sample results updated.....looks something weird when I tried to update author email as per https://help.github.com/articles/changing-author-info/.

...
seems ok now.

@ackintosh
Copy link
Contributor

@Lv-Yi #159 renames the sample folder (lumen -> php-lumen) so it has made the conflicts in this PR. (related issue: #138)
Please resolve the conflicts 🙏

@Lv-Yi
Copy link
Author

Lv-Yi commented May 30, 2018

Reset to commit 30688 (Update composer.mustache), the last commit before updating samples.
Merge from latest origin/master.
And then retry the sample scripts.

@Lv-Yi
Copy link
Author

Lv-Yi commented May 30, 2018

$ ./bin/php-lumen-petstore-server.sh

START SCRIPT: ./bin/php-lumen-petstore-server.sh

Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Exception in thread "main" io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameters: [-g, php-lumen]
at io.airlift.airline.Cli.validate(Cli.java:148)
at io.airlift.airline.Cli.parse(Cli.java:116)
at io.airlift.airline.Cli.parse(Cli.java:97)
at org.openapitools.codegen.OpenAPIGenerator.main(OpenAPIGenerator.java:52)

@Lv-Yi
Copy link
Author

Lv-Yi commented May 30, 2018

@ackintosh Please help review the script changes. The test results are based on updated scripts.
Please let me know if the samples need to be updated again.

@wing328
Copy link
Member

wing328 commented May 30, 2018

Looks like the rebase on latest master failed and result in a lot of commits that should not be part of this PR.

I'll see if I can help fix that by cherry-picking the commits authored by @Lv-Yi

@Lv-Yi
Copy link
Author

Lv-Yi commented May 30, 2018

@wing328 There were twisted commits on different branches during thest days. Thanks for help! Let me know if anything I can do if necessary.

@wing328 wing328 modified the milestones: 3.0.0, 3.0.1 Jun 1, 2018
@wing328 wing328 mentioned this pull request Jun 3, 2018
4 tasks
@wing328
Copy link
Member

wing328 commented Jun 3, 2018

@Lv-Yi I've cherry-pick your commits and filed #212 instead. Closing this one.

@wing328 wing328 closed this Jun 3, 2018
@Lv-Yi Lv-Yi deleted the lumenUpgrade branch June 4, 2018 13:57
@wing328 wing328 removed this from the 3.0.1 milestone Jun 11, 2018
nilskuhn pushed a commit to nilskuhn/openapi-generator that referenced this pull request Apr 6, 2023
…-4.x

chore(deps): update dependency @types/lodash to v4.14.165
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.