Making nested notifications less verbose (#321)
This commit is contained in:
parent
b187d8f836
commit
88aa5d3fdb
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue