swagger-api / swagger-api/swagger-codegen
[PHP-SYMFONY Bug Symfony 5
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Description
on cli : composer require swagger/server-bundle:dev-master
Installation request for swagger/server-bundle dev-master -> satisfiable by swagger/server-bundle[dev-master].
- swagger/server-bundle dev-master requires symfony/framework-bundle ^2.3|^3.0 -> no matching package found.
Swagger-codegen version
2.4.12
Steps to reproduce
- Create Symfony 5 project
- java -jar .\swagger-codegen-cli.jar generate -i swagger.yaml -l php-symfony -o .\my_api
- copy/paste generated folder "SymfonyBundle-php" in project eg. src/
- paste in composer.json "repositories": [{ "type": "path", "url": "./src/SymfonyBundle-php" }]
- composer require swagger/server-bundle:dev-master
error : swagger/server-bundle dev-master requires symfony/framework-bundle ^2.3|^3.0 -> no matching package found.
cause: current => "symfony/framework-bundle": "5.0.*"
Suggest a fix/enhancement
symfony 2 is no maintened, symfony 3 is no longer maintened so :
- upgrade for symfony 4+ compatibility
- else remove this generation
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the generated SymfonyBundle-php package and its composer.json dependency declaration, then reproduce the install from a Symfony 5 project with swagger-codegen 2.4.12. Check whether the generated bundle can declare Symfony 4+ compatibility; done means the generated package installs successfully without requiring unsupported Symfony 2 or 3 versions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, php, symfony
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100