Skip to content

Commit 0dfe390

Browse files
authored
Merge pull request #149 from akeneo/add-precision
Add the metadata field and precision on the parent field
2 parents 95a1779 + eb7143c commit 0dfe390

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

content/swagger/resources/products/definitions/product.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ properties:
2929
default: []
3030
parent:
3131
type: string
32-
description: Code of the parent product model when the product is a variant
32+
description: Code of the parent product model when the product is a variant (only available in v2.0)
3333
x-validation-rules: It is equal to an existing product model code only if the product is variant otherwise it's equal to null
3434
default: "null"
3535
x-immutable: true
@@ -81,6 +81,17 @@ properties:
8181
description: Date of the last update
8282
format: dateTime
8383
x-read-only: true
84+
metadata:
85+
type: object
86+
description: More information around the product (only available in the Enterprise Edition)
87+
x-immutable: true
88+
x-read-only: true
89+
properties:
90+
workflow_status:
91+
description: Status of the product regarding the user permissions (only available in the Enterprise Edition)
92+
type: string
93+
enum: ['read_only','draft_in_progress','proposal_waiting_for_approval','working_copy']
94+
8495
example: {
8596
"identifier": "top",
8697
"enabled": true,

0 commit comments

Comments
 (0)