Diff

spec/scansion/pubsub_config.scs @ 11856:14a679588b7b

mod_pubsub,mod_pep: Advertise maximum number of items via XEP-0122 Clients would generally be using the "max" symbol instead of discovering this, but this also gets us validation and earlier rejection of out of bounds values.
author Kim Alvefur <zash@zash.se>
date Wed, 20 Oct 2021 17:32:34 +0200
parent 11855:8890eaa69446
child 12966:7465d3c5679d
line wrap: on
line diff
--- a/spec/scansion/pubsub_config.scs	Wed Oct 20 17:31:24 2021 +0200
+++ b/spec/scansion/pubsub_config.scs	Wed Oct 20 17:32:34 2021 +0200
@@ -49,7 +49,7 @@
 					<field var="pubsub#type" label="The type of node data, usually specified by the namespace of the payload (if any)" type="text-single"/>
 					<field var="pubsub#max_items" label="Max # of items to persist" type="text-single">
 						<validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max">
-							<range min="1"/>
+							<range min="1" max="256"/>
 						</validate>
 						<value>1</value>
 					</field>
@@ -139,7 +139,7 @@
 					<field var="pubsub#type" type="text-single" label="The type of node data, usually specified by the namespace of the payload (if any)"/>
 					<field var="pubsub#max_items" type="text-single" label="Max # of items to persist">
 						<validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max">
-							<range min="1"/>
+							<range min="1" max="256"/>
 						</validate>
 						<value>1</value>
 					</field>