Comparison

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
parent 5080:ce9b836f66d5
child 5528:ce6e071d61a0
comparison
equal deleted inserted replaced
5118:7bce75e74f86 5119:048e339706ba
404 "xml" : { 404 "xml" : {
405 "name" : "query", 405 "name" : "query",
406 "namespace" : "jabber:iq:oob" 406 "namespace" : "jabber:iq:oob"
407 } 407 }
408 }, 408 },
409 "payload" : {
410 "$ref" : "#/_common/payload"
411 },
409 "ping" : { 412 "ping" : {
410 "description" : "Test reachability of some XMPP address", 413 "description" : "Test reachability of some XMPP address",
411 "enum" : [ 414 "enum" : [
412 true 415 true
413 ], 416 ],
863 "xml" : { 866 "xml" : {
864 "name" : "x", 867 "name" : "x",
865 "namespace" : "jabber:x:oob" 868 "namespace" : "jabber:x:oob"
866 } 869 }
867 }, 870 },
871 "payload" : {
872 "$ref" : "#/_common/payload"
873 },
868 "reactions" : { 874 "reactions" : {
869 "properties" : { 875 "properties" : {
870 "id" : { 876 "id" : {
871 "type" : "string", 877 "type" : "string",
872 "xml" : { 878 "xml" : {