How to reproduce:
/**
* @ApiResource(
* iri="https://schema.org/Foo",
* itemOperations={
* "bar": {"route_name": "api_foo_bar", "method": "GET"},
* "get": {"method": "GET"}
* }
* )
*/
Expected result:
2 operations in the swagger output, currently only the GET route is outputted.
Problem:
\ApiPlatform\Core\Swagger\ApiDocumentationBuilder::getSwaggerOperation
IMO the code before the switch statement is wrong.