ApiPlatform\OpenApi\OpenApi does not implement \ApiPlatform\Documentation\DocumentationInterface
BPavol opened this issue · 0 comments
BPavol commented
Factory lexik_jwt_authentication.api_platform.openapi.factory
-> Lexik\Bundle\JWTAuthenticationBundle\OpenApi\OpenApiFactory
returns ApiPlatform\OpenApi\OpenApi
.
This class does not implement \ApiPlatform\Documentation\DocumentationInterface
which cause this error:
Nelmio\ApiDocBundle\Describer\ApiPlatformDescriber::__construct(): Argument #1 ($documentation) must be of type ApiPlatform\Documentation\DocumentationInterface, ApiPlatform\OpenApi\OpenApi given, called in /srv/www/var/cache/dev/ContainerCxvJMxD/getNelmioApiDoc_Describers_ApiPlatformService.php on line 26
I have combination of these packages which cause the problem:
api-platform/core
lexik/jwt-authentication-bundle
nelmio/api-doc-bundle
Issue is already mentioned here: nelmio/NelmioApiDocBundle#2089<
I don't know if, it should be fixed here and return custom DocumentationInterface
implementation or ApiPlatform
should make OpenApi
extends DocumentationInterface
.