Open rdavaillaud opened 5 years ago
For me the problem is the array have multiple definition.
The converter PgArray is capable to return if the type is an array or not :
if ($sql_type !== PgArray::getSubType($sql_type)) {
$sql_type = 'array';
}
With this fix we keep the definition in this class.
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.