Closed zyoshoka closed 1 month ago
このPRによるapi.jsonの差分
Attention: Patch coverage is 66.66667%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 61.71%. Comparing base (
b6fdd71
) to head (9ddb36d
). Report is 1 commits behind head on develop.
Files with missing lines | Patch % | Lines |
---|---|---|
packages/backend/src/models/Notification.ts | 0.00% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
🙏🏿
What
app
タイプの通知のスキーマ・型が不正確なのを修正します。Why
app
タイプの通知を発行しているのはこの部分です: https://github.com/misskey-dev/misskey/blob/b6fdd7195725d09ab30245ac174d0ea04ef550ae/packages/backend/src/server/api/endpoints/notifications/create.ts#L42-L47 https://github.com/misskey-dev/misskey/blob/b6fdd7195725d09ab30245ac174d0ea04ef550ae/packages/backend/src/core/entities/NotificationEntityService.ts#L165-L169 次の問題があります:customBody
はnull
になりえないことが Ajv のバリデーションで保証されているが、型ではnull
がついてしまっていて不正確header
とicon
はnull
になりうるが、スキーマではnullable: false
になってしまっていて不正確Additional info (optional)
CHANGELOG の更新は微妙なのでとりあえず見送っています
Checklist