diff --git a/lemur/notifications/schemas.py b/lemur/notifications/schemas.py index 3f164a33..2c93d32b 100644 --- a/lemur/notifications/schemas.py +++ b/lemur/notifications/schemas.py @@ -34,8 +34,14 @@ class NotificationOutputSchema(LemurOutputSchema): return data -class NotificationNestedOutputSchema(NotificationOutputSchema): +class NotificationNestedOutputSchema(LemurOutputSchema): __envelope__ = False + id = fields.Integer() + label = fields.String() + description = fields.String() + active = fields.Boolean() + options = fields.List(fields.Dict()) + plugin = fields.Nested(PluginOutputSchema) notification_input_schema = NotificationInputSchema()