refactor(api): drop ignored location param from thread routes (#3371)

This commit is contained in:
Hampus authored and GitHub committed 2026-10-10 17:57:15 +02:00
1 parent c14b7d4cb3
commit 70fd9e6331
6 files changed
+3 -77

No files matched your search

@@ -33,7 +33,6 @@ import {
StartThreadFromMessageRequest,
StartThreadRequest,
ThreadChannelResponse,
ThreadLocationQuery,
ThreadMemberGetQuery,
ThreadMemberListResponse,
ThreadMembersListQuery,
@@ -389,7 +388,6 @@ export function ThreadController(app: HonoApp) {
RateLimitMiddleware(RateLimitConfigs.CHANNEL_THREAD_MEMBER_PUT),
LoginRequired,
Validator('param', ChannelIdParam),
Validator('query', ThreadLocationQuery),
OpenAPI({
operationId: 'join_thread',
summary: 'Join a thread',
@@ -415,7 +413,6 @@ export function ThreadController(app: HonoApp) {
RateLimitMiddleware(RateLimitConfigs.CHANNEL_THREAD_MEMBER_DELETE),
LoginRequired,
Validator('param', ChannelIdParam),
Validator('query', ThreadLocationQuery),
OpenAPI({
operationId: 'leave_thread',
summary: 'Leave a thread',
@@ -474,7 +471,6 @@ export function ThreadController(app: HonoApp) {
LoginRequired,
SelfThreadMemberAlias('join'),
Validator('param', ChannelIdUserIdParam),
Validator('query', ThreadLocationQuery),
OpenAPI({
operationId: 'add_thread_member',
summary: 'Add a thread member',
@@ -504,7 +500,6 @@ export function ThreadController(app: HonoApp) {
LoginRequired,
SelfThreadMemberAlias('leave'),
Validator('param', ChannelIdUserIdParam),
Validator('query', ThreadLocationQuery),
OpenAPI({
operationId: 'remove_thread_member',
summary: 'Remove a thread member',
+3 -34
View File
@@ -5850,13 +5850,6 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
},
{
"name": "location",
"in": "query",
"required": false,
"schema": {"description": "Accepted and ignored", "type": "string", "maxLength": 100},
"description": "Accepted and ignored"
}
]
},
@@ -5915,13 +5908,6 @@
"required": true,
"schema": {"description": "The ID of the channel", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the channel"
},
{
"name": "location",
"in": "query",
"required": false,
"schema": {"description": "Accepted and ignored", "type": "string", "maxLength": 100},
"description": "Accepted and ignored"
}
]
}
@@ -6140,13 +6126,6 @@
"required": true,
"schema": {"description": "The ID of the user", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the user"
},
{
"name": "location",
"in": "query",
"required": false,
"schema": {"description": "Accepted and ignored", "type": "string", "maxLength": 100},
"description": "Accepted and ignored"
}
]
},
@@ -6212,13 +6191,6 @@
"required": true,
"schema": {"description": "The ID of the user", "$ref": "#/components/schemas/SnowflakeType"},
"description": "The ID of the user"
},
{
"name": "location",
"in": "query",
"required": false,
"schema": {"description": "Accepted and ignored", "type": "string", "maxLength": 100},
"description": "Accepted and ignored"
}
]
}
@@ -31490,8 +31462,7 @@
"maximum": 21600,
"description": "Seconds a user has to wait before sending another message (0-21600)",
"$ref": "#/components/schemas/Int32Type"
},
"location": {"description": "Accepted and ignored", "type": "string", "maxLength": 100}
}
},
"required": ["name"]
},
@@ -36252,8 +36223,7 @@
},
"description": "The first message of the post",
"$ref": "#/components/schemas/ForumThreadMessageRequest"
},
"location": {"description": "Accepted and ignored", "type": "string", "maxLength": 100}
}
},
"required": ["name", "message"],
"x-fluxer-experiment": "channel_threads"
@@ -36272,8 +36242,7 @@
"invitable": {
"description": "Whether non-moderators can add other non-moderators (private threads)",
"type": "boolean"
},
"location": {"description": "Accepted and ignored", "type": "string", "maxLength": 100}
}
},
"required": ["name", "type"]
},