Comparison

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
comparison
equal deleted inserted replaced
11855:8890eaa69446 11856:14a679588b7b
47 <field var="pubsub#title" label="Title" type="text-single"/> 47 <field var="pubsub#title" label="Title" type="text-single"/>
48 <field var="pubsub#description" label="Description" type="text-single"/> 48 <field var="pubsub#description" label="Description" type="text-single"/>
49 <field var="pubsub#type" label="The type of node data, usually specified by the namespace of the payload (if any)" type="text-single"/> 49 <field var="pubsub#type" label="The type of node data, usually specified by the namespace of the payload (if any)" type="text-single"/>
50 <field var="pubsub#max_items" label="Max # of items to persist" type="text-single"> 50 <field var="pubsub#max_items" label="Max # of items to persist" type="text-single">
51 <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max"> 51 <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max">
52 <range min="1"/> 52 <range min="1" max="256"/>
53 </validate> 53 </validate>
54 <value>1</value> 54 <value>1</value>
55 </field> 55 </field>
56 <field var="pubsub#persist_items" label="Persist items to storage" type="boolean"> 56 <field var="pubsub#persist_items" label="Persist items to storage" type="boolean">
57 <value>1</value> 57 <value>1</value>
137 </field> 137 </field>
138 <field var="pubsub#description" type="text-single" label="Description"/> 138 <field var="pubsub#description" type="text-single" label="Description"/>
139 <field var="pubsub#type" type="text-single" label="The type of node data, usually specified by the namespace of the payload (if any)"/> 139 <field var="pubsub#type" type="text-single" label="The type of node data, usually specified by the namespace of the payload (if any)"/>
140 <field var="pubsub#max_items" type="text-single" label="Max # of items to persist"> 140 <field var="pubsub#max_items" type="text-single" label="Max # of items to persist">
141 <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max"> 141 <validate xmlns="http://jabber.org/protocol/xdata-validate" datatype="pubsub:integer-or-max">
142 <range min="1"/> 142 <range min="1" max="256"/>
143 </validate> 143 </validate>
144 <value>1</value> 144 <value>1</value>
145 </field> 145 </field>
146 <field var="pubsub#persist_items" type="boolean" label="Persist items to storage"> 146 <field var="pubsub#persist_items" type="boolean" label="Persist items to storage">
147 <value>1</value> 147 <value>1</value>