Skip to content

Commit aae9e31

Browse files
committed
Applying bug fix for isInitializable
Signed-off-by: RJ Garcia <rj@bighead.net>
1 parent 0b7a822 commit aae9e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Documentation/Serializer/OperationResourceClassDocumentationNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ private function getPropertySchema(PropertyMetadata $propertyMetadata, \ArrayObj
449449
{
450450
$propertySchema = new \ArrayObject($propertyMetadata->getAttributes()['swagger_context'] ?? []);
451451

452-
if (false === $propertyMetadata->isWritable()) {
452+
if (false === $propertyMetadata->isWritable() && !$propertyMetadata->isInitializable()) {
453453
$propertySchema['readOnly'] = true;
454454
}
455455

0 commit comments

Comments
 (0)