comparison mod_rest/res/schema-xmpp.json @ 4841:f69c5a443156

mod_rest: Fix nested message stanzas in XEP-0297 containers It's all a bit awkward because it doesn't normally use the whole schema directly, but rather checks which stanza type is used and picks out that property as a schema. Which also prevents references from working.
author Kim Alvefur <zash@zash.se>
date Wed, 29 Dec 2021 19:40:28 +0100
parents e9b7c8db3ebd
children 52522c71ad1a
comparison
equal deleted inserted replaced
4840:e9b7c8db3ebd 4841:f69c5a443156
563 } 563 }
564 } 564 }
565 }, 565 },
566 "type" : "object", 566 "type" : "object",
567 "xml" : { 567 "xml" : {
568 "name" : "iq" 568 "name" : "iq",
569 "namespace" : "jabber:client"
569 } 570 }
570 }, 571 },
571 "message" : { 572 "message" : {
572 "properties" : { 573 "properties" : {
573 "archive" : { 574 "archive" : {
629 "properties" : { 630 "properties" : {
630 "delay" : { 631 "delay" : {
631 "$ref" : "#/_common/delay" 632 "$ref" : "#/_common/delay"
632 }, 633 },
633 "message" : { 634 "message" : {
634 "$ref" : "#/message" 635 "$ref" : "#/properties/message"
635 } 636 }
636 }, 637 },
637 "title" : "XEP-0297: Stanza Forwarding", 638 "title" : "XEP-0297: Stanza Forwarding",
638 "type" : "object", 639 "type" : "object",
639 "xml" : { 640 "xml" : {
892 "$ref" : "#/_common/type" 893 "$ref" : "#/_common/type"
893 } 894 }
894 }, 895 },
895 "type" : "object", 896 "type" : "object",
896 "xml" : { 897 "xml" : {
897 "name" : "message" 898 "name" : "message",
899 "namespace" : "jabber:client"
898 } 900 }
899 }, 901 },
900 "presence" : { 902 "presence" : {
901 "properties" : { 903 "properties" : {
902 "caps" : { 904 "caps" : {
1004 } 1006 }
1005 } 1007 }
1006 }, 1008 },
1007 "type" : "object", 1009 "type" : "object",
1008 "xml" : { 1010 "xml" : {
1009 "name" : "presence" 1011 "name" : "presence",
1012 "namespace" : "jabber:client"
1010 } 1013 }
1011 } 1014 }
1012 }, 1015 },
1013 "type" : "object", 1016 "type" : "object",
1014 "xml" : { 1017 "xml" : {