changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "deliveredRange": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "currency": {
- "description": "The currency of this range.",
- "enum": [
- "USD",
- "EUR",
- "GBP",
- "AUD",
- "CAD"
- ],
- "type": "string"
- },
- "maximum": {
- "description": "The highest delivered price, in this currency.",
- "type": "number"
- },
- "minimum": {
- "description": "The lowest delivered price, in this currency.",
- "type": "number"
- }
- },
- "required": [
- "minimum",
- "maximum",
- "currency"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The delivered price range across the suppliers that fit; null when unavailable."
- },
- "destination": {
- "description": "Where the buyer lives: US, GB, DE, CA or AU.",
- "enum": [
- "US",
- "GB",
- "DE",
- "AU",
- "CA"
- ],
- "type": "string"
- },
- "doesNotFit": {
- "additionalProperties": false,
- "description": "Suppliers that do not fit.",
- "properties": {
- "items": {
- "description": "One supplier each.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "name": {
- "description": "The supplier's name.",
- "type": "string"
- },
- "reasons": {
- "description": "Why it fits, needs a check or does not fit.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "checkedAt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When it was checked, as an ISO date-time; null when unknown."
- },
- "detail": {
- "description": "What the supplier states about it.",
- "type": "string"
- },
- "label": {
- "description": "The condition, such as monthly fee.",
- "type": "string"
- },
- "source": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "label": {
- "description": "What the source is, such as the supplier's pricing page.",
- "type": "string"
- },
- "url": {
- "description": "The source page itself.",
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "label",
- "url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Where the answer comes from; null when there is no source."
- },
- "status": {
- "description": "met when the condition holds, qualified when it holds with conditions, unknown when unconfirmed, blocked when it fails.",
- "type": "string"
- }
- },
- "required": [
- "status",
- "label",
- "detail",
- "checkedAt",
- "source"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "supplierId": {
- "description": "The supplier's id.",
- "type": "string"
- },
- "url": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The supplier's profile page on POD Benchmark; null when it has none."
- }
- },
- "required": [
- "supplierId",
- "name",
- "url",
- "reasons"
- ],
- "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"
- },
- "exampleProduct": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "canonicalProductId": {
- "description": "The example product's id, to pass to compare_product.",
- "type": "string"
- },
- "name": {
- "description": "The example product's name.",
- "type": "string"
- },
- "option": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The configuration the prices refer to; null when none."
- },
- "url": {
- "description": "The example product's comparison page on POD Benchmark.",
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "canonicalProductId",
- "name",
- "option",
- "url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "The product the delivered prices refer to; null when none."
- },
- "fits": {
- "additionalProperties": false,
- "description": "Suppliers that fit the shop.",
- "properties": {
- "items": {
- "description": "One supplier each.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "name": {
- "description": "The supplier's name.",
- "type": "string"
- },
- "reasons": {
- "description": "Why it fits, needs a check or does not fit.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "checkedAt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When it was checked, as an ISO date-time; null when unknown."
- },
- "detail": {
- "description": "What the supplier states about it.",
- "type": "string"
- },
- "label": {
- "description": "The condition, such as monthly fee.",
- "type": "string"
- },
- "source": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "label": {
- "description": "What the source is, such as the supplier's pricing page.",
- "type": "string"
- },
- "url": {
- "description": "The source page itself.",
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "label",
- "url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Where the answer comes from; null when there is no source."
- },
- "status": {
- "description": "met when the condition holds, qualified when it holds with conditions, unknown when unconfirmed, blocked when it fails.",
- "type": "string"
- }
- },
- "required": [
- "status",
- "label",
- "detail",
- "checkedAt",
- "source"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "supplierId": {
- "description": "The supplier's id.",
- "type": "string"
- },
- "url": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The supplier's profile page on POD Benchmark; null when it has none."
- }
- },
- "required": [
- "supplierId",
- "name",
- "url",
- "reasons"
- ],
- "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"
- },
- "needsCheck": {
- "additionalProperties": false,
- "description": "Suppliers that might fit but need something confirmed first.",
- "properties": {
- "items": {
- "description": "One supplier each.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "name": {
- "description": "The supplier's name.",
- "type": "string"
- },
- "reasons": {
- "description": "Why it fits, needs a check or does not fit.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "checkedAt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "When it was checked, as an ISO date-time; null when unknown."
- },
- "detail": {
- "description": "What the supplier states about it.",
- "type": "string"
- },
- "label": {
- "description": "The condition, such as monthly fee.",
- "type": "string"
- },
- "source": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "label": {
- "description": "What the source is, such as the supplier's pricing page.",
- "type": "string"
- },
- "url": {
- "description": "The source page itself.",
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "label",
- "url"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Where the answer comes from; null when there is no source."
- },
- "status": {
- "description": "met when the condition holds, qualified when it holds with conditions, unknown when unconfirmed, blocked when it fails.",
- "type": "string"
- }
- },
- "required": [
- "status",
- "label",
- "detail",
- "checkedAt",
- "source"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "supplierId": {
- "description": "The supplier's id.",
- "type": "string"
- },
- "url": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The supplier's profile page on POD Benchmark; null when it has none."
- }
- },
- "required": [
- "supplierId",
- "name",
- "url",
- "reasons"
- ],
- "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"
- },
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "productType": {
- "description": "The product type the guide answers for.",
- "type": "string"
- },
- "state": {
- "description": "ready when suppliers were assessed; coverage-unknown when no product data covers this choice.",
- "type": "string"
- }
- },
- "required": [
- "ok",
- "state",
- "productType",
- "destination",
- "exampleProduct",
- "fits",
- "needsCheck",
- "doesNotFit",
- "deliveredRange"
- ],
- "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": {
+ "deliveredRange": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "currency": {
+ "description": "The currency of this range.",
+ "enum": [
+ "USD",
+ "EUR",
+ "GBP",
+ "AUD",
+ "CAD"
+ ],
+ "type": "string"
+ },
+ "maximum": {
+ "description": "The highest delivered price, in this currency.",
+ "type": "number"
+ },
+ "minimum": {
+ "description": "The lowest delivered price, in this currency.",
+ "type": "number"
+ }
+ },
+ "required": [
+ "minimum",
+ "maximum",
+ "currency"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The delivered price range across the suppliers that fit; null when unavailable."
+ },
+ "destination": {
+ "description": "The buyer's country these prices are for.",
+ "enum": [
+ "US",
+ "GB",
+ "DE",
+ "AU",
+ "CA"
+ ],
+ "type": "string"
+ },
+ "doesNotFit": {
+ "additionalProperties": false,
+ "description": "Suppliers that do not fit.",
+ "properties": {
+ "items": {
+ "description": "One supplier each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "description": "The supplier's name.",
+ "type": "string"
+ },
+ "reasons": {
+ "description": "Why it fits, needs a check or does not fit.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "checkedAt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When it was checked, as an ISO date-time; null when unknown."
+ },
+ "detail": {
+ "description": "What the supplier states about it.",
+ "type": "string"
+ },
+ "label": {
+ "description": "The condition, such as monthly fee.",
+ "type": "string"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "description": "What the source is, such as the supplier's pricing page.",
+ "type": "string"
+ },
+ "url": {
+ "description": "The source page itself.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Where the answer comes from; null when there is no source."
+ },
+ "status": {
+ "description": "met when the condition holds, qualified when it holds with conditions, unknown when unconfirmed, blocked when it fails.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "label",
+ "detail",
+ "checkedAt",
+ "source"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "supplierId": {
+ "description": "The supplier's id.",
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The supplier's profile page on POD Benchmark; null when it has none."
+ }
+ },
+ "required": [
+ "supplierId",
+ "name",
+ "url",
+ "reasons"
+ ],
+ "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"
+ },
+ "exampleProduct": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "canonicalProductId": {
+ "description": "The example product's id, to pass to compare_product.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The example product's name.",
+ "type": "string"
+ },
+ "option": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The configuration the prices refer to; null when none."
+ },
+ "url": {
+ "description": "The example product's comparison page on POD Benchmark.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "canonicalProductId",
+ "name",
+ "option",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The product the delivered prices refer to; null when none."
+ },
+ "fits": {
+ "additionalProperties": false,
+ "description": "Suppliers that fit the shop.",
+ "properties": {
+ "items": {
+ "description": "One supplier each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "description": "The supplier's name.",
+ "type": "string"
+ },
+ "reasons": {
+ "description": "Why it fits, needs a check or does not fit.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "checkedAt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When it was checked, as an ISO date-time; null when unknown."
+ },
+ "detail": {
+ "description": "What the supplier states about it.",
+ "type": "string"
+ },
+ "label": {
+ "description": "The condition, such as monthly fee.",
+ "type": "string"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "description": "What the source is, such as the supplier's pricing page.",
+ "type": "string"
+ },
+ "url": {
+ "description": "The source page itself.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Where the answer comes from; null when there is no source."
+ },
+ "status": {
+ "description": "met when the condition holds, qualified when it holds with conditions, unknown when unconfirmed, blocked when it fails.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "label",
+ "detail",
+ "checkedAt",
+ "source"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "supplierId": {
+ "description": "The supplier's id.",
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The supplier's profile page on POD Benchmark; null when it has none."
+ }
+ },
+ "required": [
+ "supplierId",
+ "name",
+ "url",
+ "reasons"
+ ],
+ "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"
+ },
+ "needsCheck": {
+ "additionalProperties": false,
+ "description": "Suppliers that might fit but need something confirmed first.",
+ "properties": {
+ "items": {
+ "description": "One supplier each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "name": {
+ "description": "The supplier's name.",
+ "type": "string"
+ },
+ "reasons": {
+ "description": "Why it fits, needs a check or does not fit.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "checkedAt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When it was checked, as an ISO date-time; null when unknown."
+ },
+ "detail": {
+ "description": "What the supplier states about it.",
+ "type": "string"
+ },
+ "label": {
+ "description": "The condition, such as monthly fee.",
+ "type": "string"
+ },
+ "source": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "label": {
+ "description": "What the source is, such as the supplier's pricing page.",
+ "type": "string"
+ },
+ "url": {
+ "description": "The source page itself.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "url"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Where the answer comes from; null when there is no source."
+ },
+ "status": {
+ "description": "met when the condition holds, qualified when it holds with conditions, unknown when unconfirmed, blocked when it fails.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "status",
+ "label",
+ "detail",
+ "checkedAt",
+ "source"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "supplierId": {
+ "description": "The supplier's id.",
+ "type": "string"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The supplier's profile page on POD Benchmark; null when it has none."
+ }
+ },
+ "required": [
+ "supplierId",
+ "name",
+ "url",
+ "reasons"
+ ],
+ "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"
+ },
+ "ok": {
+ "const": true,
+ "type": "boolean"
+ },
+ "productType": {
+ "description": "The product type the guide answers for.",
+ "type": "string"
+ },
+ "state": {
+ "description": "ready when suppliers were assessed; coverage-unknown when no product data covers this choice.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "ok",
+ "state",
+ "productType",
+ "destination",
+ "exampleProduct",
+ "fits",
+ "needsCheck",
+ "doesNotFit",
+ "deliveredRange"
+ ],
+ "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"
+ }
+]