mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
allow not specifying a limit on messages endpoint
This commit is contained in:
parent
d55f4f3322
commit
287855336d
2 changed files with 3 additions and 3 deletions
|
|
@ -756,7 +756,7 @@ export namespace Server {
|
|||
validator(
|
||||
"query",
|
||||
z.object({
|
||||
limit: z.coerce.number(),
|
||||
limit: z.coerce.number().optional(),
|
||||
}),
|
||||
),
|
||||
async (c) => {
|
||||
|
|
|
|||
|
|
@ -1979,9 +1979,9 @@ export type SessionMessagesData = {
|
|||
*/
|
||||
id: string
|
||||
}
|
||||
query: {
|
||||
query?: {
|
||||
directory?: string
|
||||
limit: number
|
||||
limit?: number
|
||||
}
|
||||
url: "/session/{id}/message"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue