backend: Rename expirationDate to autoDeletionDate in OpenAPI specs and update descriptions

This commit is contained in:
Carlos Santos 2025-04-08 18:35:18 +02:00
parent cf21cc7233
commit eb06643364
4 changed files with 26 additions and 16 deletions

View File

@ -10,7 +10,7 @@ content:
roomId: 'room-123'
roomIdPrefix: 'room'
creationDate: 1620000000000
expirationDate: 1620000800000
autoDeletionDate: 1620000800000
preferences:
chatPreferences:
enabled: true
@ -32,7 +32,7 @@ content:
roomId: 'room-123'
roomIdPrefix: 'room'
creationDate: 1620000000000
expirationDate: 1620000800000
autoDeletionDate: 1620000800000
preferences:
chatPreferences:
enabled: true

View File

@ -26,7 +26,7 @@ content:
- roomId: 'room-123'
roomIdPrefix: 'room'
creationDate: 1620000000000
expirationDate: 1620000800000
autoDeletionDate: 1620000800000
preferences:
chatPreferences:
enabled: true
@ -39,7 +39,7 @@ content:
- roomId: 'room-456'
roomIdPrefix: 'room'
creationDate: 1620001000000
expirationDate: 1620001800000
autoDeletionDate: 1620001800000
preferences:
chatPreferences:
enabled: false
@ -67,7 +67,7 @@ content:
- roomId: 'room-123'
roomIdPrefix: 'room'
creationDate: 1620000000000
expirationDate: 1620000800000
autoDeletionDate: 1620000800000
preferences:
chatPreferences:
enabled: true
@ -78,7 +78,7 @@ content:
- roomId: 'room-456'
roomIdPrefix: 'room'
creationDate: 1620001000000
expirationDate: 1620001800000
autoDeletionDate: 1620001800000
preferences:
chatPreferences:
enabled: false

View File

@ -1,13 +1,17 @@
type: object
required:
- expirationDate
properties:
expirationDate:
type: number
autoDeletionDate:
type: [number, 'null']
example: 1620000000000
description: >
The expiration date of the room in milliseconds since the Unix epoch.
After this date, the room will be closed and no new participants will be allowed to join.
The date and time when the room will be deleted, represented in milliseconds since the Unix epoch.
After this date, the room will be automatically deleted and no new participants can join.
If this value is set, the room is marked for deletion but will only be removed after the last
participant leaves ("graceful deletion").
If this value is not defined, the room will exist indefinitely until manually deleted.
roomIdPrefix:
type: string
example: 'room'

View File

@ -15,12 +15,18 @@ properties:
example: 1620000000000
description: >
The creation date of the room in milliseconds since the Unix epoch.
expirationDate:
type: number
autoDeletionDate:
type: [number, 'null']
example: 1620000800000
description: >
The expiration date of the room in milliseconds since the Unix epoch.
After this date, the room will be closed and no new participants will be allowed to join.
The date and time when the room will be deleted, represented in milliseconds since the Unix epoch.
After this date, the room will be automatically deleted and no new participants can join.
If this value is set, the room is marked for deletion but will only be removed after the last
participant leaves ("graceful deletion").
If this value is not defined, the room will exist indefinitely until manually deleted.
preferences:
$ref: meet-room-preferences.yaml#/MeetRoomPreferences
description: >