-
-
Notifications
You must be signed in to change notification settings - Fork 933
Closed
Description
Upgrade from 2.6.1 to 2.6.2 leads to this error:
I have the following annotations:
* "openapi_context"={
* "parameters"={
* {"name"="body", "in"="body", "description"="Token", "type"="string", "example"={"token"="foo", "typeId"="bar"}, "required"=true}
* }
* },
It seems that "in"="body"
no longer works.
It leads to
Symfony\Component\PropertyAccess\Exception\AccessException:
The method "ApiPlatform\Core\OpenApi\Model\Parameter::getStyle()" returned "null", but expected type "string". Did you forget to initialize a property or to make the return type nullable using "?string"?
at vendor/symfony/property-access/PropertyAccessor.php:403
at Symfony\Component\PropertyAccess\PropertyAccessor->readProperty(array(object(Parameter)), 'style', false)
(vendor/symfony/property-access/PropertyAccessor.php:93)
at Symfony\Component\PropertyAccess\PropertyAccessor->getValue(object(Parameter), 'style')
(vendor/symfony/serializer/Normalizer/ObjectNormalizer.php:148)
yivi, cavasinf and filoucrackeur