# HG changeset patch # User Kim Alvefur # Date 1616370310 -3600 # Node ID bd320ec2c2fcd1034b9c9a2bd51042f051e48c64 # Parent ea1fd703bb275089988989c290e6a09e315f82f8 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. diff -r ea1fd703bb27 -r bd320ec2c2fc mod_rest/res/schema-xmpp.json --- 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",