-
Notifications
You must be signed in to change notification settings - Fork 0
Update OpenAPI schema #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -406,8 +406,7 @@ components: | |
| - body | ||
| - notifyAfter | ||
| - notifyBefore | ||
| - isNotified | ||
| - targetUserIds | ||
| - targetUsers | ||
| properties: | ||
| id: | ||
| type: string | ||
|
|
@@ -482,14 +481,11 @@ components: | |
| type: string | ||
| format: date-time | ||
| description: 通知送信期限日時(この時刻を過ぎた場合は送信しない) | ||
| isNotified: | ||
| type: boolean | ||
| description: 通知が送信されたかどうか | ||
| targetUserIds: | ||
| targetUsers: | ||
| type: array | ||
| items: | ||
| type: string | ||
| description: 対象ユーザーIDのリスト | ||
| $ref: '#/components/schemas/NotificationTargetUser' | ||
| description: 対象ユーザーのリスト | ||
| NotificationRequest: | ||
| type: object | ||
| required: | ||
|
|
@@ -556,6 +552,21 @@ components: | |
| items: | ||
| type: string | ||
| description: 対象ユーザーIDのリスト | ||
| NotificationTargetUser: | ||
| type: object | ||
| required: | ||
| - userId | ||
| properties: | ||
| userId: | ||
| type: string | ||
| description: ユーザーID | ||
| notifiedAt: | ||
| type: string | ||
| format: date-time | ||
| description: |- | ||
| 通知送信日時 | ||
|
|
||
| 通知が送信された日時。送信前は null | ||
|
Comment on lines
+563
to
+569
|
||
| User: | ||
| type: object | ||
| required: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The response
Notificationschema no longer includes anisNotifiedfield, but the/v1/notificationslist endpoint still accepts theisNotifiedquery parameter for filtering. This makes it impossible for clients to distinguish notified/unnotified items when no filter is applied; consider either reintroducing a per-notification status field (or a replacement such as a timestamp) or removing the filter parameter to keep the contract consistent.