mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-19 16:54:22 +01:00
allow not specifying a limit on messages endpoint
This commit is contained in:
@@ -756,7 +756,7 @@ export namespace Server {
|
|||||||
validator(
|
validator(
|
||||||
"query",
|
"query",
|
||||||
z.object({
|
z.object({
|
||||||
limit: z.coerce.number(),
|
limit: z.coerce.number().optional(),
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
async (c) => {
|
async (c) => {
|
||||||
|
|||||||
@@ -1979,9 +1979,9 @@ export type SessionMessagesData = {
|
|||||||
*/
|
*/
|
||||||
id: string
|
id: string
|
||||||
}
|
}
|
||||||
query: {
|
query?: {
|
||||||
directory?: string
|
directory?: string
|
||||||
limit: number
|
limit?: number
|
||||||
}
|
}
|
||||||
url: "/session/{id}/message"
|
url: "/session/{id}/message"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user