changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "categories": {
- "description": "The same counts per category.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "cheaperElsewhere": {
- "description": "How many where another supplier is cheaper.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "cheapest": {
- "description": "How many of them it wins outright, costing less than every other supplier.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "compared": {
- "description": "How many products were compared.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "id": {
- "description": "The category id.",
- "type": "string"
- },
- "medianLosingGap": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The typical amount it loses by, in the response currency; null when it never loses."
- },
- "medianWinningGap": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The typical amount it wins by, in the response currency; null when it never wins."
- },
- "name": {
- "description": "The category's display name.",
- "type": "string"
- },
- "nearCheapest": {
- "description": "How many of those are within the near-cheapest amount.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "tied": {
- "description": "How many where it ties another supplier as cheapest.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "compared",
- "cheapest",
- "tied",
- "cheaperElsewhere",
- "nearCheapest",
- "medianWinningGap",
- "medianLosingGap",
- "id",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "cheaperElsewhere": {
- "additionalProperties": false,
- "description": "Products where another supplier is cheaper, largest gap first.",
- "properties": {
- "items": {
- "description": "One product each.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "canonicalProductId": {
- "description": "The product's id, to pass to compare_product.",
- "type": "string"
- },
- "delivered": {
- "description": "This supplier's delivered price, product plus shipping, in the response currency.",
- "type": "number"
- },
- "gap": {
- "description": "How far apart the two delivered prices are, in the response currency, always positive.",
- "type": "number"
- },
- "name": {
- "description": "The product's name.",
- "type": "string"
- },
- "option": {
- "description": "The configuration both prices refer to.",
- "type": "string"
- },
- "otherDelivered": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The other supplier's delivered price in the response currency; null when unknown."
- },
- "otherSupplier": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The other supplier's id; null when unknown."
- },
- "url": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The product's page on POD Benchmark; null when it has none."
- }
- },
- "required": [
- "canonicalProductId",
- "name",
- "url",
- "option",
- "delivered",
- "otherDelivered",
- "otherSupplier",
- "gap"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Offset to pass for the next page; null on the last page."
- },
- "totalCount": {
- "description": "How many results match in total, across every page.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "items",
- "totalCount",
- "nextOffset"
- ],
- "type": "object"
- },
- "cheapest": {
- "additionalProperties": false,
- "description": "Products where this supplier is cheapest, largest gap first.",
- "properties": {
- "items": {
- "description": "One product each.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "canonicalProductId": {
- "description": "The product's id, to pass to compare_product.",
- "type": "string"
- },
- "delivered": {
- "description": "This supplier's delivered price, product plus shipping, in the response currency.",
- "type": "number"
- },
- "gap": {
- "description": "How far apart the two delivered prices are, in the response currency, always positive.",
- "type": "number"
- },
- "name": {
- "description": "The product's name.",
- "type": "string"
- },
- "option": {
- "description": "The configuration both prices refer to.",
- "type": "string"
- },
- "otherDelivered": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The other supplier's delivered price in the response currency; null when unknown."
- },
- "otherSupplier": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The other supplier's id; null when unknown."
- },
- "url": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The product's page on POD Benchmark; null when it has none."
- }
- },
- "required": [
- "canonicalProductId",
- "name",
- "url",
- "option",
- "delivered",
- "otherDelivered",
- "otherSupplier",
- "gap"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Offset to pass for the next page; null on the last page."
- },
- "totalCount": {
- "description": "How many results match in total, across every page.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "items",
- "totalCount",
- "nextOffset"
- ],
- "type": "object"
- },
- "checkedAt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When this supplier's prices were last checked, as an ISO date-time; null when unknown."
- },
- "currency": {
- "description": "Currency for every price, such as USD, GBP or EUR.",
- "enum": [
- "USD",
- "EUR",
- "GBP",
- "AUD",
- "CAD"
- ],
- "type": "string"
- },
- "destination": {
- "description": "Where the buyer lives: US, GB, DE, CA or AU.",
- "enum": [
- "US",
- "GB",
- "DE",
- "AU",
- "CA"
- ],
- "type": "string"
- },
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "overview": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "cheaperElsewhere": {
- "description": "How many where another supplier is cheaper.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "cheapest": {
- "description": "How many of them it wins outright, costing less than every other supplier.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "compared": {
- "description": "How many products were compared.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "medianLosingGap": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The typical amount it loses by, in the response currency; null when it never loses."
- },
- "medianWinningGap": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The typical amount it wins by, in the response currency; null when it never wins."
- },
- "nearCheapest": {
- "description": "How many of those are within the near-cheapest amount.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "tied": {
- "description": "How many where it ties another supplier as cheapest.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "compared",
- "cheapest",
- "tied",
- "cheaperElsewhere",
- "nearCheapest",
- "medianWinningGap",
- "medianLosingGap"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The comparison across every product; null when unavailable."
- },
- "status": {
- "description": "ready when prices could be compared, unavailable when not.",
- "enum": [
- "ready",
- "unavailable"
- ],
- "type": "string"
- }
- },
- "required": [
- "ok",
- "status",
- "destination",
- "currency",
- "checkedAt",
- "overview",
- "categories",
- "cheapest",
- "cheaperElsewhere"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "description": "The error this call returned instead of a result.",
- "properties": {
- "code": {
- "description": "The machine-readable reason the call failed.",
- "enum": [
- "invalid_input",
- "not_found",
- "product_not_found",
- "invalid_option",
- "comparison_unavailable",
- "unavailable",
- "rate_limited"
- ],
- "type": "string"
- },
- "message": {
- "description": "What went wrong, in words, and what to do next.",
- "type": "string"
- },
- "retryable": {
- "description": "Whether calling again could succeed.",
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- },
- "ok": {
- "const": false,
- "type": "boolean"
- }
- },
- "required": [
- "ok",
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "categories": {
+ "description": "The same counts per category.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "cheaperElsewhere": {
+ "description": "How many where another supplier is cheaper.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "cheapest": {
+ "description": "How many of them it wins outright, costing less than every other supplier.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "compared": {
+ "description": "How many products were compared.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "id": {
+ "description": "The category id.",
+ "type": "string"
+ },
+ "medianLosingGap": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The typical amount it loses by, in the response currency; null when it never loses."
+ },
+ "medianWinningGap": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The typical amount it wins by, in the response currency; null when it never wins."
+ },
+ "name": {
+ "description": "The category's display name.",
+ "type": "string"
+ },
+ "nearCheapest": {
+ "description": "How many of those are within the near-cheapest amount.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tied": {
+ "description": "How many where it ties another supplier as cheapest.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "compared",
+ "cheapest",
+ "tied",
+ "cheaperElsewhere",
+ "nearCheapest",
+ "medianWinningGap",
+ "medianLosingGap",
+ "id",
+ "name"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "cheaperElsewhere": {
+ "additionalProperties": false,
+ "description": "Products where another supplier is cheaper, largest gap first.",
+ "properties": {
+ "items": {
+ "description": "One product each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "canonicalProductId": {
+ "description": "The product's id, to pass to compare_product.",
+ "type": "string"
+ },
+ "delivered": {
+ "description": "This supplier's delivered price, product plus shipping, in the response currency.",
+ "type": "number"
+ },
+ "gap": {
+ "description": "How far apart the two delivered prices are, in the response currency, always positive.",
+ "type": "number"
+ },
+ "name": {
+ "description": "The product's name.",
+ "type": "string"
+ },
+ "option": {
+ "description": "The configuration both prices refer to.",
+ "type": "string"
+ },
+ "otherDelivered": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The other supplier's delivered price in the response currency; null when unknown."
+ },
+ "otherSupplier": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The other supplier's id; null when unknown."
+ },
+ "url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The product's page on POD Benchmark; null when it has none."
+ }
+ },
+ "required": [
+ "canonicalProductId",
+ "name",
+ "url",
+ "option",
+ "delivered",
+ "otherDelivered",
+ "otherSupplier",
+ "gap"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "nextOffset": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Offset to pass for the next page; null on the last page."
+ },
+ "totalCount": {
+ "description": "How many results match in total, across every page.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "items",
+ "totalCount",
+ "nextOffset"
+ ],
+ "type": "object"
+ },
+ "cheapest": {
+ "additionalProperties": false,
+ "description": "Products where this supplier is cheapest, largest gap first.",
+ "properties": {
+ "items": {
+ "description": "One product each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "canonicalProductId": {
+ "description": "The product's id, to pass to compare_product.",
+ "type": "string"
+ },
+ "delivered": {
+ "description": "This supplier's delivered price, product plus shipping, in the response currency.",
+ "type": "number"
+ },
+ "gap": {
+ "description": "How far apart the two delivered prices are, in the response currency, always positive.",
+ "type": "number"
+ },
+ "name": {
+ "description": "The product's name.",
+ "type": "string"
+ },
+ "option": {
+ "description": "The configuration both prices refer to.",
+ "type": "string"
+ },
+ "otherDelivered": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The other supplier's delivered price in the response currency; null when unknown."
+ },
+ "otherSupplier": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The other supplier's id; null when unknown."
+ },
+ "url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The product's page on POD Benchmark; null when it has none."
+ }
+ },
+ "required": [
+ "canonicalProductId",
+ "name",
+ "url",
+ "option",
+ "delivered",
+ "otherDelivered",
+ "otherSupplier",
+ "gap"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "nextOffset": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Offset to pass for the next page; null on the last page."
+ },
+ "totalCount": {
+ "description": "How many results match in total, across every page.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "items",
+ "totalCount",
+ "nextOffset"
+ ],
+ "type": "object"
+ },
+ "checkedAt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When this supplier's prices were last checked, as an ISO date-time; null when unknown."
+ },
+ "currency": {
+ "description": "Currency for every price, such as USD, GBP or EUR.",
+ "enum": [
+ "USD",
+ "EUR",
+ "GBP",
+ "AUD",
+ "CAD"
+ ],
+ "type": "string"
+ },
+ "destination": {
+ "description": "The buyer's country these prices are for.",
+ "enum": [
+ "US",
+ "GB",
+ "DE",
+ "AU",
+ "CA"
+ ],
+ "type": "string"
+ },
+ "ok": {
+ "const": true,
+ "type": "boolean"
+ },
+ "overview": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "cheaperElsewhere": {
+ "description": "How many where another supplier is cheaper.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "cheapest": {
+ "description": "How many of them it wins outright, costing less than every other supplier.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "compared": {
+ "description": "How many products were compared.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "medianLosingGap": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The typical amount it loses by, in the response currency; null when it never loses."
+ },
+ "medianWinningGap": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The typical amount it wins by, in the response currency; null when it never wins."
+ },
+ "nearCheapest": {
+ "description": "How many of those are within the near-cheapest amount.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "tied": {
+ "description": "How many where it ties another supplier as cheapest.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "compared",
+ "cheapest",
+ "tied",
+ "cheaperElsewhere",
+ "nearCheapest",
+ "medianWinningGap",
+ "medianLosingGap"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The comparison across every product; null when unavailable."
+ },
+ "status": {
+ "description": "ready when prices could be compared, unavailable when not.",
+ "enum": [
+ "ready",
+ "unavailable"
+ ],
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok",
+ "status",
+ "destination",
+ "currency",
+ "checkedAt",
+ "overview",
+ "categories",
+ "cheapest",
+ "cheaperElsewhere"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "error": {
+ "additionalProperties": false,
+ "description": "The error this call returned instead of a result.",
+ "properties": {
+ "code": {
+ "description": "The machine-readable reason the call failed.",
+ "enum": [
+ "invalid_input",
+ "not_found",
+ "product_not_found",
+ "invalid_option",
+ "comparison_unavailable",
+ "unavailable",
+ "rate_limited"
+ ],
+ "type": "string"
+ },
+ "message": {
+ "description": "What went wrong, in words, and what to do next.",
+ "type": "string"
+ },
+ "retryable": {
+ "description": "Whether calling again could succeed.",
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "code",
+ "message",
+ "retryable"
+ ],
+ "type": "object"
+ },
+ "ok": {
+ "const": false,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "ok",
+ "error"
+ ],
+ "type": "object"
+ }
+]