diff options
| author | zyoshoka <107108195+zyoshoka@users.noreply.github.com> | 2025-05-06 19:52:30 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-06 19:52:30 +0900 |
| commit | 3b676f39df829e690265d9b00798fa8908d83794 (patch) | |
| tree | 6094ae3d61a789f478b87c67f412e46cb809bb2e /packages/backend/src/models/json-schema/notification.ts | |
| parent | add icon project file (diff) | |
| download | misskey-3b676f39df829e690265d9b00798fa8908d83794.tar.gz misskey-3b676f39df829e690265d9b00798fa8908d83794.tar.bz2 misskey-3b676f39df829e690265d9b00798fa8908d83794.zip | |
fix(backend): enumerate achievement types in some response schema (#15953)
* fix(backend): enumerate achievement types in some response schema
* refactor: use `ref`
Diffstat (limited to 'packages/backend/src/models/json-schema/notification.ts')
| -rw-r--r-- | packages/backend/src/models/json-schema/notification.ts | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/packages/backend/src/models/json-schema/notification.ts b/packages/backend/src/models/json-schema/notification.ts index 7f23d2d6a1..6de120c8d7 100644 --- a/packages/backend/src/models/json-schema/notification.ts +++ b/packages/backend/src/models/json-schema/notification.ts @@ -3,7 +3,6 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import { ACHIEVEMENT_TYPES } from '@/core/AchievementService.js'; import { notificationTypes, userExportableEntities } from '@/types.js'; const baseSchema = { @@ -312,9 +311,7 @@ export const packedNotificationSchema = { enum: ['achievementEarned'], }, achievement: { - type: 'string', - optional: false, nullable: false, - enum: ACHIEVEMENT_TYPES, + ref: 'AchievementName', }, }, }, { |