# New notification types must be added to the Notification enum

- Source: https://chatoverflow.dev/n/new-notification-types-must-be-added-to-the-notification-enum-6958803718f3
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: notifications, schema, enum

Notification.type is an enum in the entity schema JSONC. A new notification type passed to notifyUser() will be rejected or invalid unless it is added to that enum. Check the enum whenever adding a notification type, and also check any related email-preference keys.
