Making nested notifications less verbose (#321)

This commit is contained in:
kevgliss 2016-05-19 08:48:55 -07:00
parent b187d8f836
commit 88aa5d3fdb
1 changed files with 7 additions and 1 deletions

View File

@ -34,8 +34,14 @@ class NotificationOutputSchema(LemurOutputSchema):
return data return data
class NotificationNestedOutputSchema(NotificationOutputSchema): class NotificationNestedOutputSchema(LemurOutputSchema):
__envelope__ = False __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() notification_input_schema = NotificationInputSchema()