1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-28 23:44:19 +00:00

Improved "window_size" description in swagger schema

This commit is contained in:
Lorenzo Balugani 2021-05-25 15:44:48 +02:00
parent 36971f9cb5
commit 4f274fa9af

View file

@ -136,7 +136,7 @@ class Alert(Schema):
id = fields.Integer(description="The alert id.") id = fields.Integer(description="The alert id.")
name = fields.String(description="The name of the alert.") name = fields.String(description="The name of the alert.")
limit = fields.Integer(description="The number of tweets in a time window.") limit = fields.Integer(description="The number of tweets in a time window.")
window_size = fields.Integer(description="The size of the time window.") window_size = fields.Integer(description="The size of the time window (in hours).")
repository_id = fields.Integer(description="The id of the related repository.") repository_id = fields.Integer(description="The id of the related repository.")
evaluation_mode = fields.Integer(description="How the conditions have to be evaluated.") evaluation_mode = fields.Integer(description="How the conditions have to be evaluated.")
conditions = fields.Nested(ConditionSchema, many=True) conditions = fields.Nested(ConditionSchema, many=True)