changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "product": {
- "additionalProperties": false,
- "properties": {
- "audience": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "brand": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "canonicalProductId": {
- "type": "string"
- },
- "category": {
- "anyOf": [
- {
- "additionalProperties": false,
- "properties": {
- "id": {
- "type": "string"
- },
- "name": {
- "type": "string"
- }
- },
- "required": [
- "id",
- "name"
- ],
- "type": "object"
- },
- {
- "type": "null"
- }
- ]
- },
- "description": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "faqs": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "answer": {
- "type": "string"
- },
- "question": {
- "type": "string"
- }
- },
- "required": [
- "question",
- "answer"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "highlights": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "model": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "name": {
- "type": "string"
- },
- "printMethods": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "specs": {
- "additionalProperties": {
- "type": "string"
- },
- "propertyNames": {
- "type": "string"
- },
- "type": "object"
- },
- "url": {
- "anyOf": [
- {
- "format": "uri",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- }
- },
- "required": [
- "canonicalProductId",
- "name",
- "brand",
- "model",
- "category",
- "url",
- "audience",
- "description",
- "highlights",
- "printMethods",
- "specs",
- "faqs"
- ],
- "type": "object"
- },
- "similar": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "canonicalProductId": {
- "type": "string"
- },
- "differences": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "name": {
- "type": "string"
- },
- "sharedTraits": {
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "similarity": {
- "type": "string"
- },
- "url": {
- "format": "uri",
- "type": "string"
- }
- },
- "required": [
- "canonicalProductId",
- "name",
- "url",
- "similarity",
- "sharedTraits",
- "differences"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "similarCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "ok",
- "product",
- "similar",
- "similarCount"
- ],
- "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": {
+ "ok": {
+ "const": true,
+ "type": "boolean"
+ },
+ "product": {
+ "additionalProperties": false,
+ "description": "The product asked about.",
+ "properties": {
+ "audience": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Who the product is made for, such as unisex or mens."
+ },
+ "brand": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The brand, such as Gildan; null when the product has none."
+ },
+ "canonicalProductId": {
+ "description": "The product's id.",
+ "type": "string"
+ },
+ "category": {
+ "anyOf": [
+ {
+ "additionalProperties": false,
+ "properties": {
+ "id": {
+ "description": "The category id.",
+ "type": "string"
+ },
+ "name": {
+ "description": "The category's display name.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "id",
+ "name"
+ ],
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The category the product belongs to; null when it has none."
+ },
+ "description": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "A description of the product in words."
+ },
+ "faqs": {
+ "description": "Questions sellers ask about this product.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "answer": {
+ "description": "The answer.",
+ "type": "string"
+ },
+ "question": {
+ "description": "The question.",
+ "type": "string"
+ }
+ },
+ "required": [
+ "question",
+ "answer"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "highlights": {
+ "description": "Short facts about the product, such as fabric and fit.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "model": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The brand's model code, such as `3001`; null when none."
+ },
+ "name": {
+ "description": "The product's name.",
+ "type": "string"
+ },
+ "printMethods": {
+ "description": "Print methods the product supports, such as DTG or embroidery.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "specs": {
+ "additionalProperties": {
+ "type": "string"
+ },
+ "description": "Product specs as label and value, such as `fabric`: `100% cotton`.",
+ "propertyNames": {
+ "type": "string"
+ },
+ "type": "object"
+ },
+ "url": {
+ "anyOf": [
+ {
+ "format": "uri",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "The product's page on POD Benchmark; null when it has none."
+ }
+ },
+ "required": [
+ "canonicalProductId",
+ "name",
+ "brand",
+ "model",
+ "category",
+ "url",
+ "audience",
+ "description",
+ "highlights",
+ "printMethods",
+ "specs",
+ "faqs"
+ ],
+ "type": "object"
+ },
+ "similar": {
+ "description": "Other products that could stand in for this one.",
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "canonicalProductId": {
+ "description": "The similar product's id.",
+ "type": "string"
+ },
+ "differences": {
+ "description": "Where it differs in a way that matters.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "name": {
+ "description": "The similar product's name.",
+ "type": "string"
+ },
+ "sharedTraits": {
+ "description": "What it has in common with the product.",
+ "items": {
+ "type": "string"
+ },
+ "type": "array"
+ },
+ "similarity": {
+ "description": "How close it is: close alternative or acceptable substitute.",
+ "type": "string"
+ },
+ "url": {
+ "description": "The similar product's page on POD Benchmark.",
+ "format": "uri",
+ "type": "string"
+ }
+ },
+ "required": [
+ "canonicalProductId",
+ "name",
+ "url",
+ "similarity",
+ "sharedTraits",
+ "differences"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "similarCount": {
+ "description": "How many similar products exist in total.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "ok",
+ "product",
+ "similar",
+ "similarCount"
+ ],
+ "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"
+ }
+]