changeset 5528:ce6e071d61a0

mod_rest: Merge some common properties between openapi and schema
author Kim Alvefur <zash@zash.se>
date Wed, 07 Jun 2023 15:59:34 +0200 (19 months ago)
parents 5268049915d8
children a8f49bf7f8e6
files mod_rest/res/openapi.yaml mod_rest/res/schema-xmpp.json
diffstat 2 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_rest/res/openapi.yaml	Wed Jun 07 15:52:02 2023 +0200
+++ b/mod_rest/res/openapi.yaml	Wed Jun 07 15:59:34 2023 +0200
@@ -484,14 +484,16 @@
       xml:
         attribute: true
     to:
-      description: recipient
+      description: the intended recipient for the stanza
       example: alice@example.com
+      format: xmpp-jid
       type: string
       xml:
         attribute: true
     from:
-      description: the sender
-      example: bob@localhost.example
+      description: the sender of the stanza
+      example: bob@example.net
+      format: xmpp-jid
       type: string
       xml:
         attribute: true
@@ -565,6 +567,7 @@
       type: string
       format: date-time
       description: Timestamp of when a stanza was delayed, in ISO 8601 / XEP-0082 format.
+      title: 'XEP-0203: Delayed Delivery'
       xml:
         name: delay
         namespace: urn:xmpp:delay
--- a/mod_rest/res/schema-xmpp.json	Wed Jun 07 15:52:02 2023 +0200
+++ b/mod_rest/res/schema-xmpp.json	Wed Jun 07 15:59:34 2023 +0200
@@ -108,6 +108,7 @@
          }
       },
       "delay" : {
+         "description" : "Timestamp of when a stanza was delayed, in ISO 8601 / XEP-0082 format.",
          "format" : "date-time",
          "title" : "XEP-0203: Delayed Delivery",
          "type" : "string",
@@ -204,7 +205,7 @@
       },
       "to" : {
          "description" : "the intended recipient for the stanza",
-         "example" : "alice@another.example",
+         "example" : "alice@example.com",
          "format" : "xmpp-jid",
          "type" : "string",
          "xml" : {