changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "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"
- },
- "facets": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "audiences": {
- "description": "Audience values and how many products each matches.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "count": {
- "description": "How many products match this value.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "value": {
- "description": "The value to pass back in a filter.",
- "type": "string"
- }
- },
- "required": [
- "value",
- "count"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "brands": {
- "description": "Brand values and how many products each matches.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "count": {
- "description": "How many products match this value.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "value": {
- "description": "The value to pass back in a filter.",
- "type": "string"
- }
- },
- "required": [
- "value",
- "count"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "specs": {
- "additionalProperties": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "count": {
- "description": "How many products match this value.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "value": {
- "description": "The value to pass back in a filter.",
- "type": "string"
- }
- },
- "required": [
- "value",
- "count"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "description": "Counts per spec field, keyed by field such as `fit` or `material`.",
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "suppliers": {
- "description": "Supplier values and how many products each matches.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "count": {
- "description": "How many products match this value.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- "value": {
- "description": "The value to pass back in a filter.",
- "type": "string"
- }
- },
- "required": [
- "value",
- "count"
- ],
- "type": "object"
- },
- "type": "array"
- }
- },
- "required": [
- "brands",
- "suppliers",
- "audiences",
- "specs"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ],
- "description": "Filter counts when includeFacets was true; null otherwise."
- },
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ],
- "description": "Offset to pass for the next page; null on the last page."
- },
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "products": {
- "description": "The matching products, in the requested order.",
- "items": {
- "additionalProperties": false,
- "properties": {
- "audience": {
- "description": "Who the product is made for, such as unisex, mens or kids.",
- "type": "string"
- },
- "brand": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ],
- "description": "The brand, such as Gildan; null when the product has none."
- },
- "canonicalProductId": {
- "description": "The product's id, to pass to get_product, get_product_options or compare_product.",
- "pattern": "^[a-z0-9][a-z0-9-]*$",
- "type": "string"
- },
- "category": {
- "description": "The category id the product belongs to, such as `t-shirts`.",
- "type": "string"
- },
- "highlights": {
- "description": "Short facts about the product, such as fabric, fit or print method.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "name": {
- "description": "The product's name.",
- "type": "string"
- },
- "pricedSuppliers": {
- "description": "Ids of those suppliers that have a delivered price for the destination; empty when none.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "startingPrice": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The lowest delivered price (product plus shipping) across suppliers' usual configuration, in the response currency; null when no supplier has one. Compare a specific size or colour with compare_product."
- },
- "suppliers": {
- "description": "Ids of the suppliers that sell this product.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "url": {
- "description": "The product's page on POD Benchmark.",
- "format": "uri",
- "type": "string"
- },
- "weightOz": {
- "anyOf": [
- {
- "type": "number"
- },
- {
- "type": "null"
- }
- ],
- "description": "The product's weight in ounces; null when unknown."
- }
- },
- "required": [
- "canonicalProductId",
- "name",
- "brand",
- "category",
- "url",
- "audience",
- "weightOz",
- "highlights",
- "suppliers",
- "pricedSuppliers",
- "startingPrice"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "totalCount": {
- "description": "How many results match in total, across every page.",
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "ok",
- "destination",
- "currency",
- "products",
- "totalCount",
- "nextOffset",
- "facets"
- ],
- "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": {
+ "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"
+ },
+ "facets": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "audiences": {
+ "description": "Audience values and how many products each matches.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "description": "How many products match this value.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "The value to pass back in a filter.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "value",
+ "count"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "brands": {
+ "description": "Brand values and how many products each matches.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "description": "How many products match this value.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "The value to pass back in a filter.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "value",
+ "count"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "specs": {
+ "additionalProperties": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "description": "How many products match this value.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "The value to pass back in a filter.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "value",
+ "count"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "description": "Counts per spec field, keyed by field such as `fit` or `material`.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "suppliers": {
+ "description": "Supplier values and how many products each matches.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "count": {
+ "description": "How many products match this value.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ "value": {
+ "description": "The value to pass back in a filter.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "value",
+ "count"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+ },
+ "required": [
+ "brands",
+ "suppliers",
+ "audiences",
+ "specs"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Filter counts when includeFacets was true; null otherwise."
+ },
+ "nextOffset": {
+ "anyOf": [
+ {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Offset to pass for the next page; null on the last page."
+ },
+ "ok": {
+ "const": true,
+ "type": "boolean"
+ },
+ "products": {
+ "description": "The matching products, in the requested order.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "audience": {
+ "description": "Who the product is made for, such as unisex, mens or kids.",
+ "type": "string"
+ },
+ "brand": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The brand, such as Gildan; null when the product has none."
+ },
+ "canonicalProductId": {
+ "description": "The product's id, to pass to get_product, get_product_options or compare_product.",
+ "pattern": "^[a-z0-9][a-z0-9-]*$",
+ "type": "string"
+ },
+ "category": {
+ "description": "The category id the product belongs to, such as `t-shirts`.",
+ "type": "string"
+ },
+ "highlights": {
+ "description": "Short facts about the product, such as fabric, fit or print method.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "The product's name.",
+ "type": "string"
+ },
+ "pricedSuppliers": {
+ "description": "Ids of those suppliers that have a delivered price for the destination; empty when none.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "startingPrice": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The lowest delivered price (product plus shipping) across suppliers' usual configuration, in the response currency; null when no supplier has one. Compare a specific size or colour with compare_product."
+ },
+ "suppliers": {
+ "description": "Ids of the suppliers that sell this product.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "url": {
+ "description": "The product's page on POD Benchmark.",
+ "format": "uri",
+ "type": "string"
+ },
+ "weightOz": {
+ "anyOf": [
+ {
+ "type": "number"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The product's weight in ounces; null when unknown."
+ }
+ },
+ "required": [
+ "canonicalProductId",
+ "name",
+ "brand",
+ "category",
+ "url",
+ "audience",
+ "weightOz",
+ "highlights",
+ "suppliers",
+ "pricedSuppliers",
+ "startingPrice"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "totalCount": {
+ "description": "How many results match in total, across every page.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "ok",
+ "destination",
+ "currency",
+ "products",
+ "totalCount",
+ "nextOffset",
+ "facets"
+ ],
+ "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"
+ }
+]