Skip to content

Commit 99803d5

Browse files
authored
Merge pull request #11 from findologic/FINDO-8584_color_filter_schema_and_reality_must_match
FINDO-8584_color_filter_schema_and_reality_must_match
2 parents c7f61d1 + f37c3b7 commit 99803d5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

example/response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"values": [
135135
{
136136
"value": "Green",
137-
"colorCode": "#00FF00"
137+
"color": "#00FF00"
138138
}
139139
]
140140
}

resources/schema.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
],
4545
"description": "In case of a selected-filter, this property indicates whether the frequency is the number of additional products you'll get after selecting the filter (additive), or whether it's the total number of results you'll have after selecting the filter (absolute)."
4646
},
47-
"colorCode": {
47+
"color": {
4848
"description": "For color filters, the hexadecimal code corresponding to the color. The filter's value is the configured color name in such a case.",
4949
"type": "string",
5050
"pattern": "^#[0-9A-Fa-f]{6}$"
@@ -259,7 +259,6 @@
259259
"count",
260260
"serviceId",
261261
"usergroup",
262-
"userId",
263262
"order"
264263
]
265264
},
@@ -342,7 +341,6 @@
342341
"landingpage",
343342
"promotion",
344343
"searchConcept",
345-
"requestId",
346344
"effectiveQuery",
347345
"totalResults",
348346
"currencySymbol"
@@ -445,7 +443,7 @@
445443
}
446444
},
447445
"productPlacement": {
448-
"type": "string",
446+
"type": ["string", "null"],
449447
"minLength": 1,
450448
"description": "In case a Product Placement matches the product, this is its name."
451449
},

0 commit comments

Comments
 (0)