changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "comparison": {
- "enum": [
- "exact",
- "equivalent"
- ]
- },
- "default_quantity": {
- "type": [
- "number",
- "null"
- ]
- },
- "estimate": {
- "$ref": "#/$defs/PriceEstimate"
- },
- "lowest_price_aed": {
- "type": [
- "number",
- "null"
- ]
- },
- "name": {
- "type": "string"
- },
- "offers": {
- "items": {
- "$ref": "#/$defs/GroceryOffer"
- },
- "type": "array"
- },
- "offers_count": {
- "type": "integer"
- },
- "open_in_browser": {
- "type": "string"
- },
- "page_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "price": {
- "type": "null"
- },
- "product_id": {
- "type": "string"
- },
- "provenance": {
- "$ref": "#/$defs/Provenance"
- },
- "unit": {
- "enum": [
- "each",
- "kg",
- "l"
- ]
- }
- },
- "required": [
- "product_id",
- "name",
- "comparison",
- "unit",
- "default_quantity",
- "offers_count",
- "lowest_price_aed",
- "page_url",
- "open_in_browser",
- "provenance"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "links": {
- "$ref": "#/$defs/Links"
- },
- "meta": {
- "$ref": "#/$defs/ResponseMeta"
- }
- },
- "required": [
- "meta",
- "data",
- "links"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "comparison": {
- "enum": [
- "exact",
- "equivalent"
- ]
- },
- "default_quantity": {
- "type": [
- "number",
- "null"
- ]
- },
- "estimate": {
- "$ref": "#/$defs/PriceEstimate"
- },
- "name": {
- "type": "string"
- },
- "offers": {
- "items": {
- "$ref": "#/$defs/GroceryOffer"
- },
- "type": "array"
- },
- "open_in_browser": {
- "type": "string"
- },
- "page_url": {
- "type": [
- "string",
- "null"
- ]
- },
- "price": {
- "type": "null"
- },
- "price_history": {
- "additionalProperties": false,
- "properties": {
- "note": {
- "type": "string"
- },
- "points": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "date": {
- "type": "string"
- },
- "price_aed": {
- "type": "number"
- },
- "store_id": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "date",
- "price_aed",
- "store_id"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "status": {
- "enum": [
- "available",
- "not_published"
- ]
- }
- },
- "required": [
- "status",
- "note",
- "points"
- ],
- "type": "object"
- },
- "product_id": {
- "type": "string"
- },
- "provenance": {
- "$ref": "#/$defs/Provenance"
- },
- "unit": {
- "enum": [
- "each",
- "kg",
- "l"
- ]
- }
- },
- "required": [
- "product_id",
- "name",
- "comparison",
- "unit",
- "default_quantity",
- "page_url",
- "open_in_browser",
- "offers",
- "price_history",
- "provenance"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "links": {
- "$ref": "#/$defs/Links"
- },
- "meta": {
- "$ref": "#/$defs/ResponseMeta"
- }
- },
- "required": [
- "meta",
- "data",
- "links"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "data": {
- "items": {
- "$ref": "#/$defs/GroceryOffer"
- },
- "type": "array"
- },
- "links": {
- "$ref": "#/$defs/Links"
- },
- "meta": {
- "$ref": "#/$defs/ResponseMeta"
- }
- },
- "required": [
- "meta",
- "data",
- "links"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "retry_after_s": {
- "type": [
- "integer",
- "null"
- ]
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable",
- "retry_after_s"
- ],
- "type": "object"
- },
- "request_id": {
- "type": [
- "string",
- "null"
- ]
- }
- },
- "required": [
- "error",
- "request_id"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "comparison": {
+ "enum": [
+ "exact",
+ "equivalent"
+ ]
+ },
+ "default_quantity": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "estimate": {
+ "$ref": "#/$defs/PriceEstimate"
+ },
+ "lowest_price_aed": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "name": {
+ "type": "string"
+ },
+ "offers": {
+ "items": {
+ "$ref": "#/$defs/GroceryOffer"
+ },
+ "type": "array"
+ },
+ "offers_count": {
+ "type": "integer"
+ },
+ "open_in_browser": {
+ "type": "string"
+ },
+ "page_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "price": {
+ "type": "null"
+ },
+ "product_id": {
+ "type": "string"
+ },
+ "provenance": {
+ "$ref": "#/$defs/Provenance"
+ },
+ "unit": {
+ "enum": [
+ "each",
+ "kg",
+ "l"
+ ]
+ }
+ },
+ "required": [
+ "product_id",
+ "name",
+ "comparison",
+ "unit",
+ "default_quantity",
+ "offers_count",
+ "lowest_price_aed",
+ "page_url",
+ "open_in_browser",
+ "provenance"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "links": {
+ "$ref": "#/$defs/Links"
+ },
+ "meta": {
+ "$ref": "#/$defs/ResponseMeta"
+ }
+ },
+ "required": [
+ "meta",
+ "data",
+ "links"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "comparison": {
+ "enum": [
+ "exact",
+ "equivalent"
+ ]
+ },
+ "default_quantity": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "estimate": {
+ "$ref": "#/$defs/PriceEstimate"
+ },
+ "name": {
+ "type": "string"
+ },
+ "offers": {
+ "items": {
+ "$ref": "#/$defs/GroceryOffer"
+ },
+ "type": "array"
+ },
+ "open_in_browser": {
+ "type": "string"
+ },
+ "page_url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "price": {
+ "type": "null"
+ },
+ "price_history": {
+ "additionalProperties": false,
+ "properties": {
+ "note": {
+ "type": "string"
+ },
+ "points": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "date": {
+ "type": "string"
+ },
+ "price_aed": {
+ "type": "number"
+ },
+ "store_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ }
+ },
+ "required": [
+ "date",
+ "price_aed",
+ "store_id"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "status": {
+ "enum": [
+ "available",
+ "not_published"
+ ]
+ }
+ },
+ "required": [
+ "status",
+ "note",
+ "points"
+ ],
+ "type": "object"
+ },
+ "product_id": {
+ "type": "string"
+ },
+ "provenance": {
+ "$ref": "#/$defs/Provenance"
+ },
+ "unit": {
+ "enum": [
+ "each",
+ "kg",
+ "l"
+ ]
+ }
+ },
+ "required": [
+ "product_id",
+ "name",
+ "comparison",
+ "unit",
+ "default_quantity",
+ "page_url",
+ "open_in_browser",
+ "offers",
+ "price_history",
+ "provenance"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "links": {
+ "$ref": "#/$defs/Links"
+ },
+ "meta": {
+ "$ref": "#/$defs/ResponseMeta"
+ }
+ },
+ "required": [
+ "meta",
+ "data",
+ "links"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "data": {
+ "items": {
+ "$ref": "#/$defs/GroceryOffer"
+ },
+ "type": "array"
+ },
+ "links": {
+ "$ref": "#/$defs/Links"
+ },
+ "meta": {
+ "$ref": "#/$defs/ResponseMeta"
+ }
+ },
+ "required": [
+ "meta",
+ "data",
+ "links"
+ ],
+ "type": "object"
+ },
+ {
+ "required": [
+ "error",
+ "request_id"
+ ],
+ "type": "object"
+ }
+]