Bug 1942239 - Add option to explicitly enable incremental origin initialization in...
[gecko.git] / toolkit / components / shopping / schemas / recommendations_response.schema.json
blobdcb9b31fd9fae14465408ecdbb26501102833992
2   "$schema": "http://json-schema.org/draft-07/schema#",
3   "$id": "chrome://global/content/shopping/recommendations_response.schema.json",
4   "title": "Recommendations",
5   "description": "Recommendations for a product",
6   "type": "array",
7   "items": {
8     "$ref": "#/$defs/recommendation"
9   },
10   "$defs": {
11     "recommendation": {
12       "type": "object",
13       "properties": {
14         "name": {
15           "type": "string"
16         },
17         "url": {
18           "type": "string"
19         },
20         "image_url": {
21           "type": "string"
22         },
23         "price": {
24           "anyOf": [
25             {
26               "type": "string"
27             },
28             {
29               "type": "null"
30             }
31           ]
32         },
33         "currency": {
34           "anyOf": [
35             {
36               "type": "string"
37             },
38             {
39               "type": "null"
40             }
41           ],
42           "examples": ["USD"]
43         },
44         "grade": {
45           "description": "Reliability grade for the product's reviews.",
46           "anyOf": [
47             {
48               "type": "string"
49             },
50             {
51               "type": "null"
52             }
53           ],
54           "examples": ["A", "B", "C", "D", "F"]
55         },
56         "adjusted_rating": {
57           "type": "number"
58         },
59         "analysis_url": {
60           "type": "string"
61         },
62         "sponsored": {
63           "type": "boolean"
64         },
65         "aid": {
66           "type": "string"
67         }
68       }
69     }
70   }