changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "activeListingCount": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "facts": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "items": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "detail": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "sources": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "label": {
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "label",
- "url"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "status": {
- "type": "string"
- },
- "summary": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "title": {
- "type": "string"
- },
- "verifiedAt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "title",
- "summary",
- "detail",
- "status",
- "verifiedAt",
- "sources"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "totalCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "items",
- "totalCount",
- "nextOffset"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "introduction": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "locations": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "checkedAt": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "countries": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "countryCode": {
- "type": "string"
- },
- "countryName": {
- "type": "string"
- },
- "locationCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "countryCode",
- "countryName",
- "locationCount"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "items": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "countryCode": {
- "type": "string"
- },
- "label": {
- "type": "string"
- },
- "provider": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "label",
- "countryCode",
- "provider"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "totalCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "countries",
- "items",
- "totalCount",
- "nextOffset",
- "checkedAt"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "providers": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "items": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "totalCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "items",
- "totalCount",
- "nextOffset"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "summary": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "detail": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "label": {
- "type": "string"
- },
- "value": {
- "type": "string"
- }
- },
- "required": [
- "label",
- "value",
- "detail"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "supplier": {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- },
- "type": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "url": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "website": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "type",
- "website",
- "url"
- ],
- "type": "object"
- }
- },
- "required": [
- "ok",
- "supplier",
- "activeListingCount",
- "introduction",
- "summary",
- "facts",
- "providers",
- "locations"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "error": {
- "additionalProperties": false,
- "properties": {
- "code": {
- "enum": [
- "invalid_input",
- "not_found",
- "product_not_found",
- "invalid_option",
- "comparison_unavailable",
- "unavailable",
- "rate_limited"
- ],
- "type": "string"
- },
- "message": {
- "type": "string"
- },
- "retryable": {
- "type": "boolean"
- }
- },
- "required": [
- "code",
- "message",
- "retryable"
- ],
- "type": "object"
- },
- "ok": {
- "const": false,
- "type": "boolean"
- }
- },
- "required": [
- "ok",
- "error"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "activeListingCount": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "How many of this supplier's products POD Benchmark compares; null when not counted."
+ },
+ "facts": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "description": "One fact each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "detail": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The full claim in the supplier's own terms; null when there is none."
+ },
+ "sources": {
+ "description": "Where the fact comes from.",
+ "items": {
+ "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": "array"
+ },
+ "status": {
+ "description": "The fact's state, such as available, limited, unavailable, varies, not_confirmed or current.",
+ "type": "string"
+ },
+ "summary": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The fact in one line; null when it has none."
+ },
+ "title": {
+ "description": "What the fact is about.",
+ "type": "string"
+ },
+ "verifiedAt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the fact was verified, as an ISO date-time; null when unknown."
+ }
+ },
+ "required": [
+ "title",
+ "summary",
+ "detail",
+ "status",
+ "verifiedAt",
+ "sources"
+ ],
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Operating facts when include asked for facts; null otherwise."
+ },
+ "introduction": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "An introduction to the supplier in words; null when there is none."
+ },
+ "locations": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "checkedAt": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The date these locations were last checked, as `YYYY-MM-DD`; null when unknown."
+ },
+ "countries": {
+ "description": "Production locations counted by country.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "countryCode": {
+ "description": "The country's code, such as US.",
+ "type": "string"
+ },
+ "countryName": {
+ "description": "The country's name.",
+ "type": "string"
+ },
+ "locationCount": {
+ "description": "How many production locations are in this country.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "countryCode",
+ "countryName",
+ "locationCount"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "items": {
+ "description": "One production location each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "countryCode": {
+ "description": "The country's code, such as US.",
+ "type": "string"
+ },
+ "label": {
+ "description": "The location as the supplier names it.",
+ "type": "string"
+ },
+ "provider": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The print provider at this location; null for a direct supplier."
+ }
+ },
+ "required": [
+ "label",
+ "countryCode",
+ "provider"
+ ],
+ "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": [
+ "countries",
+ "items",
+ "totalCount",
+ "nextOffset",
+ "checkedAt"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Where the supplier reports printing, when include asked for locations; null otherwise."
+ },
+ "ok": {
+ "const": true,
+ "type": "boolean"
+ },
+ "providers": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "items": {
+ "description": "One print provider each.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "description": "The provider's id, to pass as `provider`.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The provider's name.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "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"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "A marketplace's print providers when include asked for them; null otherwise."
+ },
+ "summary": {
+ "description": "The supplier at a glance: rows such as plans, support, branding and routing.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "detail": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "A sentence of detail; null when there is none."
+ },
+ "label": {
+ "description": "What the row is about.",
+ "type": "string"
+ },
+ "value": {
+ "description": "The short answer.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "label",
+ "value",
+ "detail"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "supplier": {
+ "additionalProperties": false,
+ "description": "The supplier asked about.",
+ "properties": {
+ "id": {
+ "description": "The supplier's id, to pass to get_supplier, get_supplier_prices or compare_product.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The supplier's name.",
+ "type": "string"
+ },
+ "type": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "direct when the supplier makes and ships orders itself, marketplace when it routes them to independent print providers; null when unknown."
+ },
+ "url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The supplier's profile page on POD Benchmark; null when it has none."
+ },
+ "website": {
+ "description": "The supplier's own website.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name",
+ "type",
+ "website",
+ "url"
+ ],
+ "type": "object"
+ }
+ },
+ "required": [
+ "ok",
+ "supplier",
+ "activeListingCount",
+ "introduction",
+ "summary",
+ "facts",
+ "providers",
+ "locations"
+ ],
+ "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"
+ }
+]