From 88aa5d3fdb6c08e17752e3f33ea738826f889e0d Mon Sep 17 00:00:00 2001 From: kevgliss Date: Thu, 19 May 2016 08:48:55 -0700 Subject: [PATCH] Making nested notifications less verbose (#321) --- lemur/notifications/schemas.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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()