Software /
code /
prosody
Comparison
plugins/mod_pubsub/pubsub.lib.lua @ 9245:cc32aae5c7da
mod_pubsub: Use dataforms validation to specify that max_items is an integer
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 01 Sep 2018 03:02:44 +0200 |
parent | 9244:b3b156bd9914 |
child | 9247:26854d7a4947 |
comparison
equal
deleted
inserted
replaced
9244:b3b156bd9914 | 9245:cc32aae5c7da |
---|---|
69 var = "pubsub#type"; | 69 var = "pubsub#type"; |
70 label = "The type of node data, usually specified by the namespace of the payload (if any)"; | 70 label = "The type of node data, usually specified by the namespace of the payload (if any)"; |
71 }; | 71 }; |
72 { | 72 { |
73 type = "text-single"; | 73 type = "text-single"; |
74 datatype = "xs:integer"; | |
74 name = "max_items"; | 75 name = "max_items"; |
75 var = "pubsub#max_items"; | 76 var = "pubsub#max_items"; |
76 label = "Max # of items to persist"; | 77 label = "Max # of items to persist"; |
77 }; | 78 }; |
78 { | 79 { |