提交 01cd7e04 编写于 作者: M Matthias Klumpp 提交者: Ansgar Burchardt

dep11: Properly validate Time and Priority fields

上级 7452ea84
......@@ -28,8 +28,8 @@ schema_header = Schema({
Required('Origin'): All(str, Length(min=1)),
Required('Version'): All(str, Match(r'(\d+\.?)+$'), msg="Must be a valid version number"),
Required('MediaBaseUrl'): All(str, Url()),
'Time': All(str, str),
'Priority': All(str, int),
'Time': All(str),
'Priority': All(int),
})
schema_translated = Schema({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册