Skip to content

Commit

Permalink
fix(description): Increase description length to 2.000 characters
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Jan 14, 2025
1 parent 6bb5e00 commit 4593dc0
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 30 deletions.
6 changes: 3 additions & 3 deletions docs/conversation.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ Get all (for moderators and in case of "free selection") or the assigned breakou
* Endpoint: `/room/{token}/description`
* Data:

| field | type | Description |
|---------------|--------|--------------------------------------|
| `description` | string | New description for the conversation |
| field | type | Description |
|---------------|--------|--------------------------------------------------------------------------------------------|
| `description` | string | New description for the conversation (limited to 2.000 characters, was 500 before Talk 21) |

* Response:
- Status code:
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/RoomController.php
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ public function renameRoom(string $roomName): DataResponse {
/**
* Update the description of a room
*
* @param string $description New description
* @param string $description New description for the conversation (limited to 2.000 characters, was 500 before Talk 21)
* @return DataResponse<Http::STATUS_OK, TalkRoom, array{}>|DataResponse<Http::STATUS_BAD_REQUEST, array{error: 'type'|'value'}, array{}>
*
* 200: Description updated successfully
Expand Down
2 changes: 1 addition & 1 deletion lib/Room.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class Room {
public const START_CALL_MODERATORS = 2;
public const START_CALL_NOONE = 3;

public const DESCRIPTION_MAXIMUM_LENGTH = 500;
public const DESCRIPTION_MAXIMUM_LENGTH = 2000;

public const HAS_FEDERATION_NONE = 0;
public const HAS_FEDERATION_TALKv1 = 1;
Expand Down
2 changes: 1 addition & 1 deletion openapi-full.json
Original file line number Diff line number Diff line change
Expand Up @@ -12590,7 +12590,7 @@
"properties": {
"description": {
"type": "string",
"description": "New description"
"description": "New description for the conversation (limited to 2.000 characters, was 500 before Talk 21)"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12748,7 +12748,7 @@
"properties": {
"description": {
"type": "string",
"description": "New description"
"description": "New description for the conversation (limited to 2.000 characters, was 500 before Talk 21)"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/openapi-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6752,7 +6752,7 @@ export interface operations {
requestBody: {
content: {
"application/json": {
/** @description New description */
/** @description New description for the conversation (limited to 2.000 characters, was 500 before Talk 21) */
description: string;
};
};
Expand Down
2 changes: 1 addition & 1 deletion src/types/openapi/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6336,7 +6336,7 @@ export interface operations {
requestBody: {
content: {
"application/json": {
/** @description New description */
/** @description New description for the conversation (limited to 2.000 characters, was 500 before Talk 21) */
description: string;
};
};
Expand Down
20 changes: 10 additions & 10 deletions tests/integration/features/command/create.feature

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions tests/integration/features/conversation-5/set-description.feature

Large diffs are not rendered by default.

0 comments on commit 4593dc0

Please sign in to comment.