Diff

mod_rest/res/schema-xmpp.json @ 4726:611bc06c4160

mod_rest: Add mapping for XEP-0215: External Service Discovery Enough to query and retrieve services.
author Kim Alvefur <zash@zash.se>
date Tue, 26 Oct 2021 17:52:15 +0200
parent 4720:71bec9c21dcd
child 4732:607cac9b9393
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json	Mon Oct 25 16:48:06 2021 +0200
+++ b/mod_rest/res/schema-xmpp.json	Tue Oct 26 17:52:15 2021 +0200
@@ -62,6 +62,90 @@
    "properties" : {
       "iq" : {
          "properties" : {
+            "extdisco" : {
+               "properties" : {
+                  "services" : {
+                     "items" : {
+                        "properties" : {
+                           "expires" : {
+                              "format" : "datetime",
+                              "type" : "string",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "host" : {
+                              "required" : true,
+                              "type" : "string",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "name" : {
+                              "type" : "string",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "password" : {
+                              "type" : "string",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "port" : {
+                              "type" : "integer",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "restricted" : {
+                              "type" : "boolean",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "transport" : {
+                              "type" : "string",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "type" : {
+                              "required" : true,
+                              "type" : "string",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           },
+                           "username" : {
+                              "type" : "string",
+                              "xml" : {
+                                 "attribute" : true
+                              }
+                           }
+                        },
+                        "type" : "object",
+                        "xml" : {
+                           "name" : "service"
+                        }
+                     },
+                     "type" : "array"
+                  },
+                  "type" : {
+                     "type" : "string",
+                     "xml" : {
+                        "attribute" : true
+                     }
+                  }
+               },
+               "title" : "XEP-0215: External Service Discovery",
+               "type" : "object",
+               "xml" : {
+                  "name" : "services",
+                  "namespace" : "urn:xmpp:extdisco:2"
+               }
+            },
             "gateway" : {
                "properties" : {
                   "desc" : {