Comparison

mod_rest/res/openapi.yaml @ 4935:a85efae90e21

mod_rest: Expand mapping of XEP-0045 join stanza The previous 'join' mapping was apparently lost in translation when swithing to datamapper, so might as well map some properties allowing history control. Usually you probably want either zero history or history since the last known time of being joined. Maybe that the former should be the default?
author Kim Alvefur <zash@zash.se>
date Sat, 30 Apr 2022 01:00:01 +0200
parent 4929:65438e4ba563
child 4948:2ff1fa824c5d
comparison
equal deleted inserted replaced
4934:ae83200fb55f 4935:a85efae90e21
281 vcard_update: 281 vcard_update:
282 $ref: '#/components/schemas/vcard_update' 282 $ref: '#/components/schemas/vcard_update'
283 idle_since: 283 idle_since:
284 $ref: '#/components/schemas/idle_since' 284 $ref: '#/components/schemas/idle_since'
285 285
286 join: 286 muc:
287 $ref: '#/components/schemas/join' 287 $ref: '#/components/schemas/muc'
288 288
289 error: 289 error:
290 $ref: '#/components/schemas/error' 290 $ref: '#/components/schemas/error'
291 291
292 iq: 292 iq:
508 xml: 508 xml:
509 name: replace 509 name: replace
510 namespace: urn:xmpp:message-correct:0 510 namespace: urn:xmpp:message-correct:0
511 x_single_attribute: id 511 x_single_attribute: id
512 512
513 join: 513 muc:
514 description: For joining Multi-User-Chats 514 description: Multi-User-Chat related
515 type: boolean 515 type: object
516 enum: 516 xml:
517 - true 517 name: x
518 namespace: http://jabber.org/protocol/muc
519 properties:
520 history:
521 type: object
522 properties:
523 maxchars:
524 type: integer
525 minimum: 0
526 xml:
527 attribute: true
528 maxstanzas:
529 type: integer
530 minimum: 0
531 xml:
532 attribute: true
533 seconds:
534 type: integer
535 minimum: 0
536 xml:
537 attribute: true
538 since:
539 type: string
540 format: date-time
541 xml:
542 attribute: true
543
518 544
519 invite: 545 invite:
520 type: object 546 type: object
521 description: Invite to a group chat 547 description: Invite to a group chat
522 required: 548 required: