You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With API Plateform, when I want to generate the swagger file with: bin/console api:swagger:export --output=swagger_specification.json
It throws an error:
In FileLoader.php line 168:
Invalid text[] in . (which is being imported from "/var/www/config/routes/api_platform.yaml"). Make sure there is a loader supporting the "api_platform" type.
In TypeExtractor.php line 93:
Invalid text[]
After some digging, in TypeExtractor.php, the function getPommType() does not get the proper array subtype.
Hi,
It seems that the PropertyInfo
TypeExtractor
does not handle array subtype.In a structure like the following
With API Plateform, when I want to generate the swagger file with:
bin/console api:swagger:export --output=swagger_specification.json
It throws an error:
After some digging, in TypeExtractor.php, the function
getPommType()
does not get the proper array subtype.If I replace with the code below, it works as expected.
It seems to be multiple path to get a converter, I don't know if this is the right thing to do.
The text was updated successfully, but these errors were encountered: