diff mod_rest/res/schema-xmpp.json @ 4520:bd320ec2c2fc

mod_rest: Declare presence priority an integer in -128..127 per RFC6121 util.datamapper doesn't actually understand min/max, but it's informative and the schema could be used to validate the input at some point.
author Kim Alvefur <zash@zash.se>
date Mon, 22 Mar 2021 00:45:10 +0100
parents ea1fd703bb27
children 6e20e6bf96f0
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json	Mon Mar 22 00:21:27 2021 +0100
+++ b/mod_rest/res/schema-xmpp.json	Mon Mar 22 00:45:10 2021 +0100
@@ -209,7 +209,9 @@
          "properties" : {
             "priority" : {
                "description" : "Presence priority",
-               "type" : "string"
+               "maximum" : 127,
+               "minimum" : -128,
+               "type" : "integer"
             },
             "show" : {
                "description" : "indicator of availability, ie away or not",