changedOutput schema / properties / deal / anyOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "coupon_code": {
- "type": [
- "string",
- "null"
- ]
- },
- "discount_percent": {
- "anyOf": [
- {
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "id": {
- "type": "string"
- },
- "image_url": {
- "description": "Product photo",
- "type": [
- "string",
- "null"
- ]
- },
- "old_price": {
- "description": "BRL, price before the discount",
- "type": [
- "number",
- "null"
- ]
- },
- "price": {
- "description": "BRL",
- "type": [
- "number",
- "null"
- ]
- },
- "price_30d": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "avg": {
- "description": "BRL",
- "type": [
- "number",
- "null"
- ]
- },
- "max": {
- "description": "BRL",
- "type": [
- "number",
- "null"
- ]
- },
- "min": {
- "description": "BRL",
- "type": [
- "number",
- "null"
- ]
- },
- "records": {
- "type": "integer"
- }
- },
- "required": [
- "min",
- "avg",
- "max",
- "records"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "product_url": {
- "description": "Product page with price history and other stores",
- "type": [
- "string",
- "null"
- ]
- },
- "published_at": {
- "description": "ISO 8601",
- "type": [
- "string",
- "null"
- ]
- },
- "purchase_url": {
- "description": "Link to buy at the store",
- "type": [
- "string",
- "null"
- ]
- },
- "status": {
- "enum": [
- "active",
- "expired",
- "pending"
- ],
- "type": "string"
- },
- "store": {
- "type": [
- "string",
- "null"
- ]
- },
- "title": {
- "type": "string"
- },
- "url": {
- "description": "Deal page on Pechincha.ai",
- "type": "string"
- }
- },
- "required": [
- "id",
- "title",
- "price",
- "old_price",
- "discount_percent",
- "store",
- "coupon_code",
- "published_at",
- "url",
- "image_url",
- "status",
- "purchase_url",
- "product_url",
- "price_30d"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cons": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "coupon_code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "discount_percent": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "faq": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "answer": {
+ "type": "string"
+ },
+ "question": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "question",
+ "answer"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "id": {
+ "type": "string"
+ },
+ "image_url": {
+ "description": "Product photo",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "old_price": {
+ "description": "BRL, price before the discount",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "price": {
+ "description": "BRL",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "price_30d": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "avg": {
+ "description": "BRL",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "max": {
+ "description": "BRL",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "min": {
+ "description": "BRL",
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "records": {
+ "type": "integer"
+ }
+ },
+ "required": [
+ "min",
+ "avg",
+ "max",
+ "records"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "product_id": {
+ "description": "For get_product and get_price_history",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "product_url": {
+ "description": "Product page with price history and other stores",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "pros": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "published_at": {
+ "description": "ISO 8601",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "purchase_url": {
+ "description": "Link to buy at the store",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "review_summary": {
+ "description": "Summary of reviews and expert opinion",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "specs": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "key": {
+ "type": "string"
+ },
+ "value": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "key",
+ "value"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "status": {
+ "enum": [
+ "active",
+ "expired",
+ "pending"
+ ],
+ "type": "string"
+ },
+ "store": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "summary": {
+ "description": "Price facts: discount, price verdict and history",
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "title": {
+ "type": "string"
+ },
+ "url": {
+ "description": "Deal page on Pechincha.ai",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "title",
+ "price",
+ "old_price",
+ "discount_percent",
+ "store",
+ "coupon_code",
+ "published_at",
+ "url",
+ "image_url",
+ "status",
+ "purchase_url",
+ "product_id",
+ "product_url",
+ "price_30d",
+ "summary",
+ "review_summary",
+ "pros",
+ "cons",
+ "specs",
+ "faq"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+]