Software /
code /
prosody-modules
Comparison
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 |
parent | 4519:ea1fd703bb27 |
child | 4523:6e20e6bf96f0 |
comparison
equal
deleted
inserted
replaced
4519:ea1fd703bb27 | 4520:bd320ec2c2fc |
---|---|
207 }, | 207 }, |
208 "presence" : { | 208 "presence" : { |
209 "properties" : { | 209 "properties" : { |
210 "priority" : { | 210 "priority" : { |
211 "description" : "Presence priority", | 211 "description" : "Presence priority", |
212 "type" : "string" | 212 "maximum" : 127, |
213 "minimum" : -128, | |
214 "type" : "integer" | |
213 }, | 215 }, |
214 "show" : { | 216 "show" : { |
215 "description" : "indicator of availability, ie away or not", | 217 "description" : "indicator of availability, ie away or not", |
216 "enum" : [ | 218 "enum" : [ |
217 "away", | 219 "away", |