changedOutput schema / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "as_of": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "bestprice_url": {
- "format": "uri",
- "type": "string"
- },
- "currency": {
- "const": "EUR",
- "type": "string"
- },
- "current_price": {
- "anyOf": [
- {
- "maximum": 10000000,
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "current_price_source": {
- "enum": [
- "live_offer_minimum",
- "latest_daily_history",
- "unavailable"
- ],
- "type": "string"
- },
- "data_gaps": {
- "additionalProperties": false,
- "properties": {
- "coverage_note": {
- "maxLength": 180,
- "minLength": 1,
- "type": "string"
- },
- "longest_gap_days": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "missing_days": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "stale_days": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "missing_days",
- "longest_gap_days",
- "stale_days",
- "coverage_note"
- ],
- "type": "object"
- },
- "deal_classification": {
- "enum": [
- "record_low",
- "excellent_price",
- "good_price",
- "typical_price",
- "above_typical",
- "insufficient_data",
- "unavailable"
- ],
- "type": "string"
- },
- "decision_id": {
- "description": "Signed, anonymous id joining this recommendation to its BestPrice landing and outbound-click telemetry.",
- "pattern": "^d1\\.[a-f0-9]{32}\\.[A-Za-z0-9_-]{43}$",
- "type": "string"
- },
- "locale": {
- "const": "el-GR",
- "type": "string"
- },
- "methodology_id": {
- "const": "bestprice_daily_min_v1",
- "type": "string"
- },
- "period_days": {
- "anyOf": [
- {
- "const": 30,
- "type": "number"
- },
- {
- "const": 90,
- "type": "number"
- },
- {
- "const": 180,
- "type": "number"
- }
- ]
- },
- "price_delta_vs_180d_median_pct": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "product_id": {
- "pattern": "^bp_[0-9]{10}$",
- "type": "string"
- },
- "product_title": {
- "anyOf": [
- {
- "maxLength": 220,
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "quality": {
- "additionalProperties": false,
- "properties": {
- "cluster_continuity": {
- "enum": [
- "same_cluster",
- "discontinuous",
- "unknown"
- ],
- "type": "string"
- },
- "outlier_status": {
- "enum": [
- "protected",
- "unsafe",
- "unknown"
- ],
- "type": "string"
- }
- },
- "required": [
- "cluster_continuity",
- "outlier_status"
- ],
- "type": "object"
- },
- "schema_version": {
- "const": "2.0",
- "type": "string"
- },
- "series": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "date": {
- "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
- "type": "string"
- },
- "merchant_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "price": {
- "maximum": 10000000,
- "minimum": 0,
- "type": "number"
- }
- },
- "required": [
- "date",
- "price",
- "merchant_count"
- ],
- "type": "object"
- },
- "maxItems": 64,
- "type": "array"
- },
- "source_last_observed_at": {
- "anyOf": [
- {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "warnings": {
- "items": {
- "maxLength": 240,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 20,
- "type": "array"
- },
- "window_stats": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "coverage_pct": {
- "maximum": 100,
- "minimum": 0,
- "type": "number"
- },
- "days": {
- "anyOf": [
- {
- "const": 30,
- "type": "number"
- },
- {
- "const": 90,
- "type": "number"
- },
- {
- "const": 180,
- "type": "number"
- }
- ]
- },
- "longest_gap_days": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "median_price": {
- "anyOf": [
- {
- "maximum": 10000000,
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "minimum_price": {
- "anyOf": [
- {
- "maximum": 10000000,
- "minimum": 0,
- "type": "number"
- },
- {
- "type": "null"
- }
- ]
- },
- "observations": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "days",
- "minimum_price",
- "median_price",
- "observations",
- "coverage_pct"
- ],
- "type": "object"
- },
- "maxItems": 3,
- "minItems": 3,
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "as_of",
- "currency",
- "locale",
- "warnings",
- "product_id",
- "product_title",
- "decision_id",
- "bestprice_url",
- "period_days",
- "current_price",
- "current_price_source",
- "source_last_observed_at",
- "window_stats",
- "price_delta_vs_180d_median_pct",
- "deal_classification",
- "methodology_id",
- "data_gaps",
- "series"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "as_of": {
- "format": "date-time",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$",
- "type": "string"
- },
- "currency": {
- "const": "EUR",
- "type": "string"
- },
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "pattern": "^[A-Z][A-Z0-9_]{2,63}$",
- "type": "string"
- },
- "message": {
- "maxLength": 240,
- "minLength": 1,
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- },
- "locale": {
- "const": "el-GR",
- "type": "string"
- },
- "schema_version": {
- "const": "2.0",
- "type": "string"
- },
- "warnings": {
- "items": {
- "maxLength": 240,
- "minLength": 1,
- "type": "string"
- },
- "maxItems": 20,
- "type": "array"
- }
- },
- "required": [
- "schema_version",
- "as_of",
- "currency",
- "locale",
- "warnings",
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as_of": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "bestprice_url": {
+ "format": "uri",
+ "type": "string"
+ },
+ "currency": {
+ "$ref": "#/$defs/__schema2"
+ },
+ "current_price": {
+ "$ref": "#/$defs/__schema6"
+ },
+ "current_price_source": {
+ "enum": [
+ "live_offer_minimum",
+ "latest_daily_history",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "data_gaps": {
+ "additionalProperties": false,
+ "properties": {
+ "coverage_note": {
+ "maxLength": 180,
+ "minLength": 1,
+ "type": "string"
+ },
+ "longest_gap_days": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "missing_days": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "stale_days": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "missing_days",
+ "longest_gap_days",
+ "stale_days",
+ "coverage_note"
+ ],
+ "type": "object"
+ },
+ "deal_classification": {
+ "enum": [
+ "record_low",
+ "excellent_price",
+ "good_price",
+ "typical_price",
+ "above_typical",
+ "insufficient_data",
+ "unavailable"
+ ],
+ "type": "string"
+ },
+ "decision_id": {
+ "description": "Signed, anonymous id joining this recommendation to its BestPrice landing and outbound-click telemetry.",
+ "pattern": "^d1\\.[a-f0-9]{32}\\.[A-Za-z0-9_-]{43}$",
+ "type": "string"
+ },
+ "locale": {
+ "$ref": "#/$defs/__schema3"
+ },
+ "methodology_id": {
+ "const": "bestprice_daily_min_v1",
+ "type": "string"
+ },
+ "period_days": {
+ "anyOf": [
+ {
+ "const": 30,
+ "type": "number"
+ },
+ {
+ "const": 90,
+ "type": "number"
+ },
+ {
+ "const": 180,
+ "type": "number"
+ }
+ ]
+ },
+ "price_delta_vs_180d_median_pct": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "product_id": {
+ "pattern": "^bp_[0-9]{10}$",
+ "type": "string"
+ },
+ "product_title": {
+ "anyOf": [
+ {
+ "maxLength": 220,
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "quality": {
+ "additionalProperties": false,
+ "properties": {
+ "cluster_continuity": {
+ "enum": [
+ "same_cluster",
+ "discontinuous",
+ "unknown"
+ ],
+ "type": "string"
+ },
+ "outlier_status": {
+ "enum": [
+ "protected",
+ "unsafe",
+ "unknown"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "cluster_continuity",
+ "outlier_status"
+ ],
+ "type": "object"
+ },
+ "schema_version": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "series": {
+ "items": {
+ "$ref": "#/$defs/__schema9"
+ },
+ "maxItems": 64,
+ "type": "array"
+ },
+ "source_last_observed_at": {
+ "anyOf": [
+ {
+ "$ref": "#/$defs/__schema1"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "warnings": {
+ "$ref": "#/$defs/__schema4"
+ },
+ "window_stats": {
+ "items": {
+ "$ref": "#/$defs/__schema8"
+ },
+ "maxItems": 3,
+ "minItems": 3,
+ "type": "array"
+ }
+ },
+ "required": [
+ "schema_version",
+ "as_of",
+ "currency",
+ "locale",
+ "warnings",
+ "product_id",
+ "product_title",
+ "decision_id",
+ "bestprice_url",
+ "period_days",
+ "current_price",
+ "current_price_source",
+ "source_last_observed_at",
+ "window_stats",
+ "price_delta_vs_180d_median_pct",
+ "deal_classification",
+ "methodology_id",
+ "data_gaps",
+ "series"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "as_of": {
+ "$ref": "#/$defs/__schema1"
+ },
+ "currency": {
+ "$ref": "#/$defs/__schema2"
+ },
+ "error": {
+ "additionalProperties": false,
+ "properties": {
+ "code": {
+ "pattern": "^[A-Z][A-Z0-9_]{2,63}$",
+ "type": "string"
+ },
+ "message": {
+ "maxLength": 240,
+ "minLength": 1,
+ "type": "string"
+ },
+ "retryable": {
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ "locale": {
+ "$ref": "#/$defs/__schema3"
+ },
+ "schema_version": {
+ "$ref": "#/$defs/__schema0"
+ },
+ "warnings": {
+ "$ref": "#/$defs/__schema4"
+ }
+ },
+ "required": [
+ "schema_version",
+ "as_of",
+ "currency",
+ "locale",
+ "warnings",
+ "error"
+ ],
+ "type": "object"
+ }
+]