# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1686146374 -7200
# Node ID ce6e071d61a0fd9a777eb62035e6b25acca2e358
# Parent  5268049915d8925bb0dc6b4d20a3ebd5fe25e205
mod_rest: Merge some common properties between openapi and schema

diff -r 5268049915d8 -r ce6e071d61a0 mod_rest/res/openapi.yaml
--- 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
diff -r 5268049915d8 -r ce6e071d61a0 mod_rest/res/schema-xmpp.json
--- 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" : {