Skip to content

Commit c7f61d1

Browse files
authored
Merge pull request #7 from findologic/FINDO-8481_fix_json_api_issues
FINDO-8481_fix_json_api_issues
2 parents 0d48eb7 + fab5eb1 commit c7f61d1

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

example/response.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"totalResults": 1337,
1919
"requestId": "9cd42225-90d0-4858-bcb6-b05f33d8ec5e",
2020
"searchConcept": "Seeds",
21+
"currencySymbol": "",
2122
"landingpage": {
2223
"name": "New arrivals",
2324
"url": "https://example.org/new_stuff.html"
@@ -36,6 +37,7 @@
3637
{
3738
"id": "123ab",
3839
"url": "https://example.org/product.html",
40+
"imageUrl": "https://example.org/product.png",
3941
"name": "Blubbergurken Seeds",
4042
"highlightedName": "<span class=\"flEmphasis\">Blubbergurken</span> Seeds",
4143
"price": 13.37,
@@ -71,6 +73,7 @@
7173
"selectMode": "single",
7274
"values": [
7375
{
76+
"displayName": "Spring",
7477
"value": "Gardening_Spring",
7578
"weight": 1.2,
7679
"frequency": 13

resources/schema.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@
5656
"image": {
5757
"type": "string",
5858
"description": "In case of an image-filter, this attribute contains a filter-URL "
59+
},
60+
"displayName": {
61+
"type": "string",
62+
"description": "Name of a category without the full path. This is the rightmost part of the path."
5963
}
6064
},
6165
"additionalProperties": false
@@ -272,6 +276,10 @@
272276
"minLength": 0,
273277
"description": "The query that was actually used to serve the results. Relevant for variants like Smart Did-You-Mean that may override the user query."
274278
},
279+
"currencySymbol": {
280+
"type": "string",
281+
"description": "The shop currency symbol"
282+
},
275283
"totalResults": {
276284
"description": "The total number of matches, going beyond pagination limits.",
277285
"type": "integer",
@@ -336,7 +344,8 @@
336344
"searchConcept",
337345
"requestId",
338346
"effectiveQuery",
339-
"totalResults"
347+
"totalResults",
348+
"currencySymbol"
340349
]
341350
},
342351
"variant": {
@@ -477,7 +486,8 @@
477486
"properties",
478487
"productPlacement",
479488
"pushRules",
480-
"attributes"
489+
"attributes",
490+
"imageUrl"
481491
]
482492
}
483493
},

0 commit comments

Comments
 (0)