mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
[API] Remove unnecessary product attributes properties configuration
This commit is contained in:
parent
f7454592e2
commit
477aaa2437
2 changed files with 3 additions and 27 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue