changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "nextOffset": {
- "anyOf": [
- {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- },
- {
- "type": "null"
- }
- ]
- },
- "ok": {
- "const": true,
- "type": "boolean"
- },
- "suppliers": {
- "items": {
- "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"
- },
- "type": "array"
- },
- "totalCount": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "ok",
- "suppliers",
- "totalCount",
- "nextOffset"
- ],
- "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": {
+ "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"
+ },
+ "suppliers": {
+ "description": "The matching suppliers.",
+ "items": {
+ "additionalProperties": false,
+ "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"
+ },
+ "type": "array"
+ },
+ "totalCount": {
+ "description": "How many results match in total, across every page.",
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "ok",
+ "suppliers",
+ "totalCount",
+ "nextOffset"
+ ],
+ "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"
+ }
+]