WTF表格:
{ "$numberLong": "<number>" }
WTF会产生类似的错误
class ReplyForm(BaseForm):
max_reply_count = IntegerField(label=_("Max Reply Count") ,default="10",validators = [v.NumberRange(max=10), v.InputRequired(message=_('Max Reply Count is required'))])
sleep = IntegerField(_("Sleep") ,validators = [v.NumberRange(min=60), v.InputRequired(message=_('Sleep is required'))])
默认情况下是否可能生成错误消息?
["Not a valid integer value", "Number must be at most 10."]
我不想通过传递参数来定义消息
["Max Reply Count is not a valid integer value", "Max Reply Count must be at most 10."]