event_schema: Change propagate_mode to an enum.

This commit is contained in:
Steve Howell
2020-08-05 10:53:36 +00:00
committed by Tim Abbott
parent aca641a4d1
commit 2b76eb767f

View File

@@ -788,7 +788,17 @@ update_message_topic_fields = [
("message_ids", ListType(int)),
("new_stream_id", int),
(ORIG_TOPIC, str),
("propagate_mode", str),
(
"propagate_mode",
EnumType(
[
# order matches openapi spec
"change_one",
"change_later",
"change_all",
]
),
),
("stream_id", int),
("stream_name", str),
(TOPIC_LINKS, ListType(str)),