From b49219338cfd89392e9c5c690da13f049f7c4c28 Mon Sep 17 00:00:00 2001 From: Nicholas Wallace Date: Sun, 23 Jun 2024 17:38:17 +0000 Subject: [PATCH] Add: `nullable` notification creation parameters --- docs/controllers/NotificationController.yaml | 6 +++++- docs/objects/Notification.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/controllers/NotificationController.yaml b/docs/controllers/NotificationController.yaml index 9caf31c9f..f4972e14f 100644 --- a/docs/controllers/NotificationController.yaml +++ b/docs/controllers/NotificationController.yaml @@ -74,7 +74,11 @@ paths: type: object properties: libraryId: - $ref: '../objects/Library.yaml#/components/schemas/libraryId' + type: string + description: The ID of the library for the notification. Applies to all libraries if `null`. + nullable: true + format: uuid + example: 'e4bb1afb-4a4f-4dd6-8be0-e615d233185b' eventName: $ref: '../objects/Notification.yaml#/components/schemas/notificationEventName' urls: diff --git a/docs/objects/Notification.yaml b/docs/objects/Notification.yaml index 4837a6ec4..e016aca95 100644 --- a/docs/objects/Notification.yaml +++ b/docs/objects/Notification.yaml @@ -44,6 +44,7 @@ components: notificationType: type: string enum: ['info', 'success', 'warning', 'failure'] + nullable: true default: 'info' description: The notification's type. Notification: