Skip to content

Commit 120c5fd

Browse files
mmetayercemorin
authored andcommitted
PIM-10655: Fix completeness format in product endpoints
1 parent 3c6a0a5 commit 120c5fd

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

content/swagger/akeneo-web-api.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1359,7 +1359,7 @@ x-SaaS: {
13591359
"associations": {},
13601360
"quantified_associations": {},
13611361
"quality_scores": {},
1362-
"completenesses": {}
1362+
"completenesses": []
13631363
}
13641364
]
13651365
}

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,20 @@ properties:
150150
x-read-only: true
151151
x-from-version: '5.0'
152152
completenesses:
153-
type: object
153+
type: array
154154
description: Product completenesses for each channel/locale combination (only available on SaaS platforms, and when the "with_completenesses" query parameter is set to "true")
155155
x-immutable: true
156156
x-read-only: true
157157
x-from-version: 'SaaS'
158+
items:
159+
type: object
160+
properties:
161+
scope:
162+
type: string
163+
locale:
164+
type: string
165+
data:
166+
type: integer
158167

159168
example: {
160169
"identifier": "top",

content/swagger/resources/products_uuid/definitions/examples/products_uuid.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ x-SaaS: {
373373
"associations": {},
374374
"quantified_associations": {},
375375
"quality_scores": {},
376-
"completenesses": {}
376+
"completenesses": []
377377
}
378378
]
379379
}

content/swagger/resources/products_uuid/definitions/product_uuid.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,20 @@ properties:
145145
x-read-only: true
146146
x-from-version: '5.0'
147147
completenesses:
148-
type: object
148+
type: array
149149
description: Product completenesses for each channel/locale combination (only available on SaaS platforms, and when the "with_completenesses" query parameter is set to "true")
150150
x-immutable: true
151151
x-read-only: true
152152
x-from-version: 'SaaS'
153+
items:
154+
type: object
155+
properties:
156+
scope:
157+
type: string
158+
locale:
159+
type: string
160+
data:
161+
type: integer
153162

154163
example: {
155164
"uuid": "25566245-55c3-42ce-86d9-8610ac459fa8",

0 commit comments

Comments
 (0)