[API] Remove unnecessary product attributes properties configuration

This commit is contained in:
Rafikooo 2024-08-02 11:30:56 +02:00
parent f7454592e2
commit 477aaa2437
No known key found for this signature in database
GPG key ID: 4A26D8327BC2442B
2 changed files with 3 additions and 27 deletions

View file

@ -15,28 +15,6 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://api-platform.com/schema/metadata/properties-3.0 https://api-platform.com/schema/metadata/properties-3.0.xsd"
>
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="id" identifier="false" writable="false"/>
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="code" identifier="true" required="true" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="name" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="type" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="configuration" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="storageType" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="translatable" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="position" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="translations" readable="true" writable="true">
<openapiContext>
<values>
<value name="type">object</value>
<value name="example">
<values>
<value name="en_US">
<values>
<value name="name">string</value>
</values>
</value>
</values>
</value>
</values>
</openapiContext>
</property>
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="id" identifier="false" />
<property resource="Sylius\Component\Product\Model\ProductAttribute" name="code" identifier="true" />
</properties>

View file

@ -15,7 +15,5 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://api-platform.com/schema/metadata/properties-3.0 https://api-platform.com/schema/metadata/properties-3.0.xsd"
>
<property resource="Sylius\Component\Product\Model\ProductAttributeTranslation" name="id" identifier="true" writable="false"/>
<property resource="Sylius\Component\Product\Model\ProductAttributeTranslation" name="name" required="true"/>
<property resource="Sylius\Component\Product\Model\ProductAttributeTranslation" name="locale" required="true"/>
<property resource="Sylius\Component\Product\Model\ProductAttributeTranslation" name="id" identifier="true"/>
</properties>