{ "$defs": { "similarProductContext": { "oneOf": [ { "const": "pdp" } ], "type": "string" }, "price": { "properties": { "was": { "type": "string" }, "now": { "type": "string" }, "onSale": { "type": "boolean" } }, "required": [ "was", "now", "onSale" ], "type": "object" }, "recommendation": { "properties": { "productId": { "type": "string" }, "productName": { "type": "string" }, "productUrl": { "type": "string" }, "productImageUrl": { "type": "string" }, "brandName": { "type": "string" }, "price": { "$ref": "#/$defs/price" }, "rating": { "type": "number" }, "numReviews": { "type": "number" } }, "required": [ "productId", "productName", "productUrl", "productImageUrl", "brandName", "price" ], "type": "object" }, "similarProductRecommendation": { "properties": { "recommendations": { "items": { "$ref": "#/$defs/recommendation" }, "type": "array" } }, "required": [ "recommendations" ], "type": "object" } }, "additionalProperties": true, "properties": { "authenticated": { "const": true, "type": "boolean" }, "body": { "type": "object" }, "rawBody": { "type": "object" }, "headers": { "type": "object" }, "method": { "const": "GET", "type": "string" }, "parameterizedUrl": { "const": "/similarProductRecommendations/:context/:productId", "type": "string" }, "path": { "type": "string" }, "query": { "properties": { "color": { "type": "string" }, "limit": { "type": "integer" }, "abTestName": { "type": "string" }, "abTestVariant": { "type": "string" } }, "required": [ "limit" ], "type": "object" }, "url": { "type": "string" } }, "required": [ "body", "rawBody", "query", "path", "url", "method" ], "type": "object" }