# HG changeset patch # User Kim Alvefur # Date 1636050971 -3600 # Node ID beeacb25dea9c8628534fb890ffe0e5dbb345be9 # Parent fdd9e5d89d733795dd23fabf62109b34bf4da566 mod_rest: Add XEP-0004 mapping for future reuse For use with MAM and such diff -r fdd9e5d89d73 -r beeacb25dea9 mod_rest/res/schema-xmpp.json --- a/mod_rest/res/schema-xmpp.json Wed Nov 03 21:16:11 2021 +0100 +++ b/mod_rest/res/schema-xmpp.json Thu Nov 04 19:36:11 2021 +0100 @@ -1,5 +1,112 @@ { "_common" : { + "dataform" : { + "properties" : { + "fields" : { + "items" : { + "properties" : { + "desc" : { + "type" : "string" + }, + "label" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "options" : { + "items" : { + "properties" : { + "label" : { + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "value" : { + "type" : "string" + } + }, + "type" : "object", + "xml" : { + "name" : "option" + } + }, + "type" : "array" + }, + "required" : { + "type" : "boolean", + "xml" : { + "x_name_is_value" : true + } + }, + "type" : { + "enum" : [ + "boolean", + "fixed", + "hidden", + "jid-multi", + "jid-single", + "list-multi", + "list-single", + "text-multi", + "text-private", + "text-single" + ], + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "values" : { + "items" : { + "type" : "string", + "xml" : { + "name" : "value" + } + }, + "type" : "array" + }, + "var" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "type" : "object", + "xml" : { + "name" : "field" + } + }, + "type" : "array" + }, + "instructions" : { + "type" : "string" + }, + "title" : { + "type" : "string" + }, + "type" : { + "enum" : [ + "cancel", + "form", + "result", + "submit" + ], + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "title" : "XEP-0004: Data Forms", + "type" : "object", + "xml" : { + "name" : "x", + "namespace" : "jabber:x:data" + } + }, "delay" : { "format" : "date-time", "title" : "XEP-0203: Delayed Delivery",