From 0cadb99c5219d701b223185908aa4795b1ebe0ff Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Fri, 17 May 2024 04:44:22 +0000 Subject: [PATCH] Temporary: nullable Author schemas --- docs/objects/entities/Author.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/objects/entities/Author.yaml b/docs/objects/entities/Author.yaml index 71d7a3a7e..fe38b4188 100644 --- a/docs/objects/entities/Author.yaml +++ b/docs/objects/entities/Author.yaml @@ -6,8 +6,10 @@ components: format: uuid example: e4bb1afb-4a4f-4dd6-8be0-e615d233185b authorAsin: - type: string description: The Audible identifier (ASIN) of the author. Will be null if unknown. Not the Amazon identifier. + oneOf: + - type: string + - type: null nullable: true example: B000APZOQA authorName: @@ -40,7 +42,9 @@ components: $ref: '#/components/schemas/authorName' description: description: A description of the author. Will be null if there is none. - type: string + oneOf: + - type: string + - type: null nullable: true example: | Terry Goodkind is a #1 New York Times Bestselling Author and creator of the critically acclaimed masterwork, @@ -52,7 +56,9 @@ components: situations. imagePath: description: The absolute path for the author image located in the `metadata/` directory. Will be null if there is no image. - type: string + oneOf: + - type: string + - type: null nullable: true example: /metadata/authors/aut_bxxbyjiptmgb56yzoz.jpg addedAt: