From ec4eccdf0853a23c21f2ea5713ad8e61fb0e5755 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Wed, 4 Oct 2023 00:50:28 +0200 Subject: [PATCH] Removed unnecessary commented code --- ...cumentedAPIPropertiesJSONSchemaFactory.php | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/ApiPlatform/AddDocumentedAPIPropertiesJSONSchemaFactory.php b/src/ApiPlatform/AddDocumentedAPIPropertiesJSONSchemaFactory.php index c13af396..4b5db003 100644 --- a/src/ApiPlatform/AddDocumentedAPIPropertiesJSONSchemaFactory.php +++ b/src/ApiPlatform/AddDocumentedAPIPropertiesJSONSchemaFactory.php @@ -65,31 +65,6 @@ class AddDocumentedAPIPropertiesJSONSchemaFactory implements SchemaFactoryInterf $api_property, $serializerContext ?? [], $format); } - /*if ($className === Attachment::class) { - $api_property = new ApiProperty(description: 'Test'); - $this->buildPropertySchema($schema, 'Attachment-Read', 'media_url', $api_property, $serializerContext ?? [], - $format); - }*/ - - //Add media_url and thumbnail_url to the Attachment schema - /*if ($className === Attachment::class) { - $tmp = $schema->getDefinitions()->getArrayCopy(); - $tmp['properties']['media_url'] = [ - 'type' => 'string', - 'readOnly' => true, - 'format' => 'uri', - 'description' => 'The URL to the attachment', - ]; - $tmp['properties']['thumbnail_url'] = [ - 'type' => 'string', - 'readOnly' => true, - 'format' => 'uri', - 'description' => 'The URL to the thumbnail of the attachment', - ]; - $schema->setDefinitions(new \ArrayObject($tmp)); - }*/ - - //Fd return $schema; }