changedOutput schema / (root)
Previous value: -nullNew value: +{
+ "$schema": "http://json-schema.org/draft-07/schema#",
+ "additionalProperties": false,
+ "properties": {
+ "groups": {
+ "description": "With group_by brand or category.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "group": {
+ "type": "string"
+ },
+ "promotions": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "brands": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "discount_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Percent or amount off, depending on type."
+ },
+ "ends_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "free_gift": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "sku": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "sku",
+ "name"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "scope": {
+ "type": "string"
+ },
+ "terms_url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "description": "percentage_discount, fixed_discount or free_gift.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "description",
+ "type",
+ "discount_value",
+ "ends_at",
+ "scope",
+ "brands",
+ "free_gift",
+ "terms_url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "group",
+ "promotions"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "offers": {
+ "description": "With group_by all (the default).",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "brands": {
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "discount_value": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Percent or amount off, depending on type."
+ },
+ "ends_at": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "free_gift": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "type": "string"
+ },
+ "sku": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "sku",
+ "name"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "id": {
+ "type": "number"
+ },
+ "name": {
+ "type": "string"
+ },
+ "scope": {
+ "type": "string"
+ },
+ "terms_url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": {
+ "description": "percentage_discount, fixed_discount or free_gift.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "description",
+ "type",
+ "discount_value",
+ "ends_at",
+ "scope",
+ "brands",
+ "free_gift",
+ "terms_url"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "offers_url": {
+ "type": "string"
+ }
+ },
+ "required": [
+ "offers_url"
+ ],
+ "type": "object"
+}