jorge07 / symfony-6-es-cqrs-boilerplate

Symfony 6 DDD ES CQRS backend boilerplate.
MIT License
1.07k stars 187 forks source link

Fix issue with swagger declarations and change annotations to attributes #246

Closed ElGovanni closed 1 month ago

ElGovanni commented 1 month ago

I discovered that some annotations were duplicated, so here is a pull request to address the issue. Additionally I've improved schemas a little bit by using correct format, used Response/Request consts and changed annotations to attributes since PHP 8.1 is minimum compatible version.

The duplication caused a Nelmio 500 error, as shown in the screenshot below.

image
jorge07 commented 1 month ago

All great. Thanks! This will also help me on the path to upgrade to sf7.