comparison mod_rest/res/schema-xmpp.json @ 4534:9837c73826d2

mod_rest: Add XEP-0359 ids to schema mapping
author Kim Alvefur <zash@zash.se>
date Wed, 24 Mar 2021 01:02:58 +0100
parents 578375759510
children a9e997d5eb94
comparison
equal deleted inserted replaced
4533:578375759510 4534:9837c73826d2
416 "name" : "replace", 416 "name" : "replace",
417 "namespace" : "urn:xmpp:message-correct:0", 417 "namespace" : "urn:xmpp:message-correct:0",
418 "x_single_attribute" : "id" 418 "x_single_attribute" : "id"
419 } 419 }
420 }, 420 },
421 "stanza_ids" : {
422 "items" : {
423 "properties" : {
424 "by" : {
425 "format" : "xmpp-jid",
426 "type" : "string",
427 "xml" : {
428 "attribute" : true
429 }
430 },
431 "id" : {
432 "type" : "string",
433 "xml" : {
434 "attribute" : true
435 }
436 }
437 },
438 "required" : [
439 "id",
440 "by"
441 ],
442 "type" : "object",
443 "xml" : {
444 "name" : "stanza-id",
445 "namespace" : "urn:xmpp:sid:0"
446 }
447 },
448 "title" : "XEP-0359: Unique and Stable Stanza IDs",
449 "type" : "array"
450 },
421 "state" : { 451 "state" : {
422 "description" : "Chat state notifications, e.g. \"is typing...\"", 452 "description" : "Chat state notifications, e.g. \"is typing...\"",
423 "enum" : [ 453 "enum" : [
424 "active", 454 "active",
425 "inactive", 455 "inactive",