Skip to content

Commit bf5e14d

Browse files
committed
Add that the type is immutable (#249)
* Add that the type is immutable * Reference entity code is also immutable
1 parent 3e396cb commit bf5e14d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

content/swagger/resources/reference_entity_attributes/definitions/reference_entity_attribute.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ properties:
1818
type: string
1919
description: Attribute type
2020
enum: ['text', 'image', 'single_option', 'multiple_options', 'reference_entity_single_link', 'reference_entity_multiple_links']
21+
x-immutable: true
2122
value_per_locale:
2223
type: boolean
2324
description: Whether the attribute is localizable, i.e. can have one value by locale
@@ -76,6 +77,7 @@ properties:
7677
default : null
7778
x-validation-rules: Required when the attribute type is either `reference_entity_single_link` or `reference_entity_multiple_links`
7879
x-warning: Only for `reference_entity_single_link` and `reference_entity_multiple_links` attribute type
80+
x-immutable: true
7981
example: {
8082
"code": "description",
8183
"labels": {

0 commit comments

Comments
 (0)