Skip to content

Commit d6bce1e

Browse files
committed
Add new product attribute types for the reference entity
1 parent f512f5b commit d6bce1e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/swagger/resources/attributes/definitions/attribute.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ properties:
99
type: string
1010
description: Attribute type
1111
x-validation-rules: The type is one of the following values
12-
enum: ['pim_catalog_identifier', 'pim_catalog_metric', 'pim_catalog_number', 'pim_catalog_reference_data_multi_select', 'pim_catalog_reference_data_simple_select', 'pim_catalog_simpleselect', 'pim_catalog_multiselect', 'pim_catalog_date', 'pim_catalog_textarea', 'pim_catalog_text', 'pim_catalog_file', 'pim_catalog_image', 'pim_catalog_price', 'pim_catalog_boolean']
12+
enum: ['pim_catalog_identifier', 'pim_catalog_metric', 'pim_catalog_number', 'pim_catalog_reference_data_multi_select', 'pim_catalog_reference_data_simple_select', 'pim_catalog_simpleselect', 'pim_catalog_multiselect', 'pim_catalog_date', 'pim_catalog_textarea', 'pim_catalog_text', 'pim_catalog_file', 'pim_catalog_image', 'pim_catalog_price', 'pim_catalog_boolean', 'akeneo_reference_entity', 'akeneo_reference_entity_collection']
1313
x-immutable: true
1414
labels:
1515
type: object
@@ -119,6 +119,10 @@ properties:
119119
type: string
120120
description: Max file size in MB when the attribute type is `pim_catalog_file` or `pim_catalog_image`
121121
x-warning: Only for `pim_catalog_file` or `pim_catalog_image` attribute types
122+
reference_data_name:
123+
type: string
124+
description: Reference entity code when the attribute type is `akeneo_reference_entity` or `akeneo_reference_entity_collection`
125+
x-warning: Only for `akeneo_reference_entity` or `akeneo_reference_entity_collection` attribute types
122126
example: {
123127
"code": "release_date",
124128
"type": "pim_catalog_date",

0 commit comments

Comments
 (0)