From 3e60dbb5cfbe9cb71d25ad2d3a2ea70153bf7e41 Mon Sep 17 00:00:00 2001 From: Kendall Bennett Date: Fri, 11 Sep 2020 13:24:07 -0700 Subject: [PATCH] Tracking numbers need to be optional to correctly parse the response when a label is a test label with USPS. (cherry picked from commit 444f133e2ccd26e25f9715ec237637483efa16d6) (cherry picked from commit 64a27073a3574aa48f42b8d827ced5c5a1e7c87c) --- openapi.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index c4e684b..59ac82d 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -7608,10 +7608,10 @@ components: The total shipping cost for the specified comparison_rate_type. tracking_number: - type: string - minLength: 1 readOnly: true - example: '782758401696' + nullable: true + allOf: + - $ref: '#/components/schemas/tracking_number' description: >- The tracking number for the package. Tracking number formats vary across carriers. @@ -7917,10 +7917,10 @@ components: description: | The total shipping cost for the specified comparison_rate_type. tracking_number: - type: string - minLength: 1 readOnly: true - example: '782758401696' + nullable: true + allOf: + - $ref: '#/components/schemas/tracking_number' description: >- The tracking number for the package. Tracking number formats vary across carriers. @@ -9188,6 +9188,7 @@ components: field of the shipment to be set. tracking_number: readOnly: true + nullable: true allOf: - $ref: '#/components/schemas/tracking_number' description: > @@ -9793,6 +9794,7 @@ components: additionalProperties: false properties: tracking_number: + nullable: true allOf: - $ref: '#/components/schemas/tracking_number' tracking_url: