From 202bf0e632ad7c90b6f0390cd2286566f87ddde6 Mon Sep 17 00:00:00 2001 From: Kendall Bennett Date: Wed, 10 Nov 2021 14:38:42 -0500 Subject: [PATCH] More fields need to be nullable (cherry picked from commit 27dd7f03e20881be0e2410b945ee0277c4f12353) (cherry picked from commit cd6ed10ae46aa29f9ae56ae1d48cbc46aa2dbb04) --- openapi.yaml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index 20057bb..94769b8 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -9726,20 +9726,24 @@ components: type: string minLength: 0 readOnly: true + nullable: true example: 'Your item was delivered in or at the mailbox at 9:10 am on March' description: carrier status description ship_date: allOf: - $ref: '#/components/schemas/date_time' estimated_delivery_date: + nullable: true allOf: - $ref: '#/components/schemas/date_time' actual_delivery_date: + nullable: true allOf: - $ref: '#/components/schemas/date_time' exception_description: type: string readOnly: true + nullable: true minLength: 0 description: Exception description events: @@ -9780,14 +9784,6 @@ components: description: A track event required: - occurred_at - - city_locality - - state_province - - postal_code - - carrier_detail_code - - status_code - - status_description - - carrier_status_code - - carrier_status_description additionalProperties: false properties: occurred_at: @@ -9809,32 +9805,38 @@ components: city_locality: type: string readOnly: true + nullable: true example: AUSTIN minLength: 0 description: City locality state_province: type: string readOnly: true + nullable: true example: TX minLength: 2 description: State province postal_code: type: string readOnly: true + nullable: true example: 78756 minLength: 0 description: Postal code country_code: + nullable: true allOf: - $ref: '#/components/schemas/country_code' company_name: type: string readOnly: true + nullable: true example: Stamps.com minLength: 0 description: Company Name signer: type: string + nullable: true minLength: 0 readOnly: true description: Signer information @@ -9872,12 +9874,14 @@ components: latitude: type: number format: double + nullable: true minimum: -90 maximum: 90 description: Latitude coordinate of tracking event. longitude: type: number format: double + nullable: true minimum: -180 maximum: 180 description: Longitude coordinate of tracking event.