Skip to content

Commit

Permalink
Applying bug fix for isInitializable
Browse files Browse the repository at this point in the history
Signed-off-by: RJ Garcia <[email protected]>
  • Loading branch information
ragboyjr committed Oct 10, 2018
1 parent 0b7a822 commit aae9e31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ private function getPropertySchema(PropertyMetadata $propertyMetadata, \ArrayObj
{
$propertySchema = new \ArrayObject($propertyMetadata->getAttributes()['swagger_context'] ?? []);

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

Expand Down

0 comments on commit aae9e31

Please sign in to comment.