Add: nullable notification creation parameters

This commit is contained in:
Nicholas Wallace 2024-06-23 17:38:17 +00:00
parent d53b148fe0
commit b49219338c
2 changed files with 6 additions and 1 deletions

View file

@ -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:

View file

@ -44,6 +44,7 @@ components:
notificationType:
type: string
enum: ['info', 'success', 'warning', 'failure']
nullable: true
default: 'info'
description: The notification's type.
Notification: