type)) { $data->type = 'object'; } foreach ($data->properties as $propertyName => &$property) { if (false !== strpos($property->description, 'READ-ONLY')) { $property->readOnly = true; } } parent::__construct($data, $validator); } }