diff mod_rest/res/schema-xmpp.json @ 5119:048e339706ba

mod_rest: Remove manual reference expansion in schema This hack was originally added to reduce the number of definitions of common attributes (type, to, from etc) and payloads (e.g. delay). This predated pointers and references, and until now was needed because parsing picked out the correct stanza kind from the schema, which broke internal references. Removing this hack paves the way for allowing the schema to be configured or customized more easily.
author Kim Alvefur <zash@zash.se>
date Tue, 20 Dec 2022 21:48:28 +0100
parents ce9b836f66d5
children ce6e071d61a0
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json	Sun Dec 18 15:30:02 2022 +0100
+++ b/mod_rest/res/schema-xmpp.json	Tue Dec 20 21:48:28 2022 +0100
@@ -406,6 +406,9 @@
                   "namespace" : "jabber:iq:oob"
                }
             },
+            "payload" : {
+               "$ref" : "#/_common/payload"
+            },
             "ping" : {
                "description" : "Test reachability of some XMPP address",
                "enum" : [
@@ -865,6 +868,9 @@
                   "namespace" : "jabber:x:oob"
                }
             },
+            "payload" : {
+               "$ref" : "#/_common/payload"
+            },
             "reactions" : {
                "properties" : {
                   "id" : {