Nullable libraryId schema

This commit is contained in:
Nicholas Wallace 2024-06-23 17:49:37 +00:00
parent b49219338c
commit 25178034d0
2 changed files with 7 additions and 1 deletions

View file

@ -10,6 +10,12 @@ components:
description: The ID of the library. description: The ID of the library.
format: uuid format: uuid
example: 'e4bb1afb-4a4f-4dd6-8be0-e615d233185b' example: 'e4bb1afb-4a4f-4dd6-8be0-e615d233185b'
libraryIdNullable:
type: string
description: The ID of the library. Applies to all libraries if `null`.
format: uuid
nullable: true
example: 'e4bb1afb-4a4f-4dd6-8be0-e615d233185b'
libraryName: libraryName:
description: The name of the library. description: The name of the library.
type: string type: string

View file

@ -53,7 +53,7 @@ components:
id: id:
$ref: '#/components/schemas/notificationId' $ref: '#/components/schemas/notificationId'
libraryId: libraryId:
$ref: './Library.yaml#/components/schemas/libraryId' $ref: './Library.yaml#/components/schemas/libraryIdNullable'
eventName: eventName:
$ref: '#/components/schemas/notificationEventName' $ref: '#/components/schemas/notificationEventName'
urls: urls: