From b7fe8d8ebcda066babe8e5555bb6f13e8fd1e271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 24 Sep 2020 19:16:48 +0200 Subject: [PATCH] XEP-0060: Add integer-or-max datatype to use with Data Forms Validation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- xep-0060.xml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/xep-0060.xml b/xep-0060.xml index 8c724a90..33d82a12 100644 --- a/xep-0060.xml +++ b/xep-0060.xml @@ -49,6 +49,12 @@ &pgmillard; &stpeter; &ralphm; + + 1.20.0 + 2021-06-08 + pep +

Add integer-or-max datatype to use with Data Forms Validation.

+
1.19.1 2021-03-04 @@ -5911,6 +5917,29 @@ xmpp:pubsub.shakespeare.lit?pubsub;action=subscribe;node=princely_musings xmpp:pubsub.shakespeare.lit?pubsub;action=retrieve;node=princely_musings;item=ae890ac52d0df67ed7cfdf51b644e901 ]]> + + +

This section defines a datatype "integer-or-max" to be used with &xep0122;. An implementation may use this type to validate fields such as "pubsub#children_max", "pubsub#item_expire" or "pubsub#max_items".

+ + + + + + + + + + + + + + +]]> +

The meaning of a value of this type is defined in each field named above.

+

When the <range/> element is used in combination with this datatype, it applies to the integer value.

+
+ @@ -6658,6 +6687,20 @@ xmpp:pubsub.shakespeare.lit?pubsub;action=retrieve;node=princely_musings +]]> + + + +

The following datatype shall be registered for use with Data Forms Validation:

+ + integer-or-max + + Datatype used for text-single fields where the accepted value is + either an integer or the string "max". + + XEP-0060 + ]]>