changedOutput schema / oneOf
Previous value: -[
- {
- "additionalProperties": false,
- "properties": {
- "content_trust": {
- "const": "untrusted",
- "type": "string"
- },
- "next_cursor": {
- "type": [
- "string",
- "null"
- ]
- },
- "reviews": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "author": {
- "pattern": "^(?!\\d+$)(?!\\d+[-_])[A-Za-z0-9][A-Za-z0-9_-]{1,28}[A-Za-z0-9]$",
- "type": "string"
- },
- "comment": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "date": {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- "purchase_refunded": {
- "description": "True when a purchase behind the review received a partial or full refund; the product page labels the review Refunded purchase",
- "type": "boolean"
- },
- "rating": {
- "maximum": 5,
- "minimum": 1,
- "type": "integer"
- },
- "seller_reply": {
- "anyOf": [
- {
- "minLength": 1,
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "seller_reply_date": {
- "anyOf": [
- {
- "format": "date",
- "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
- "type": "string"
- },
- {
- "type": "null"
- }
- ]
- },
- "upvotes": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "author",
- "comment",
- "date",
- "rating",
- "seller_reply",
- "seller_reply_date",
- "upvotes"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "success": {
- "const": true,
- "type": "boolean"
- },
- "total_count": {
- "maximum": 9007199254740991,
- "minimum": 0,
- "type": "integer"
- }
- },
- "required": [
- "content_trust",
- "next_cursor",
- "reviews",
- "total_count",
- "success"
- ],
- "type": "object"
- },
- {
- "additionalProperties": false,
- "properties": {
- "category": {
- "enum": [
- "auth_required",
- "bad_request",
- "conflict",
- "forbidden",
- "not_found",
- "rate_limit",
- "server_error",
- "service_unavailable"
- ],
- "type": "string"
- },
- "error": {
- "minLength": 1,
- "type": "string"
- },
- "hint": {
- "minLength": 1,
- "type": "string"
- },
- "retry_after_seconds": {
- "exclusiveMinimum": 0,
- "maximum": 9007199254740991,
- "type": "integer"
- },
- "success": {
- "const": false,
- "type": "boolean"
- }
- },
- "required": [
- "category",
- "error",
- "success"
- ],
- "type": "object"
- }
-]New value: +[
+ {
+ "additionalProperties": false,
+ "properties": {
+ "content_trust": {
+ "const": "untrusted",
+ "type": "string"
+ },
+ "next_cursor": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "reviews": {
+ "items": {
+ "additionalProperties": false,
+ "properties": {
+ "author": {
+ "pattern": "^(?!\\d+$)(?!\\d+[-_])[A-Za-z0-9][A-Za-z0-9_-]{1,28}[A-Za-z0-9]$",
+ "type": "string"
+ },
+ "comment": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "date": {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ "purchase_refunded": {
+ "description": "True when a purchase behind the review received a partial or full refund; the product page labels the review Refunded purchase",
+ "type": "boolean"
+ },
+ "rating": {
+ "maximum": 5,
+ "minimum": 1,
+ "type": "integer"
+ },
+ "seller_reply": {
+ "anyOf": [
+ {
+ "minLength": 1,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "seller_reply_date": {
+ "anyOf": [
+ {
+ "format": "date",
+ "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "upvotes": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "author",
+ "comment",
+ "date",
+ "purchase_refunded",
+ "rating",
+ "seller_reply",
+ "seller_reply_date",
+ "upvotes"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ },
+ "success": {
+ "const": true,
+ "type": "boolean"
+ },
+ "total_count": {
+ "maximum": 9007199254740991,
+ "minimum": 0,
+ "type": "integer"
+ }
+ },
+ "required": [
+ "content_trust",
+ "next_cursor",
+ "reviews",
+ "total_count",
+ "success"
+ ],
+ "type": "object"
+ },
+ {
+ "additionalProperties": false,
+ "properties": {
+ "category": {
+ "enum": [
+ "auth_required",
+ "bad_request",
+ "conflict",
+ "forbidden",
+ "not_found",
+ "rate_limit",
+ "server_error",
+ "service_unavailable"
+ ],
+ "type": "string"
+ },
+ "error": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "hint": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "retry_after_seconds": {
+ "exclusiveMinimum": 0,
+ "maximum": 9007199254740991,
+ "type": "integer"
+ },
+ "success": {
+ "const": false,
+ "type": "boolean"
+ }
+ },
+ "required": [
+ "category",
+ "error",
+ "success"
+ ],
+ "type": "object"
+ }
+]