mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-30 20:44:31 +00:00
fix workspace warp sdk null id
This commit is contained in:
parent
2740d398fa
commit
047fdd65f2
3 changed files with 6 additions and 2 deletions
|
|
@ -146,6 +146,10 @@ function matchLegacyOpenApi(input: Record<string, unknown>) {
|
|||
if (properties?.branch) properties.branch = { anyOf: [properties.branch, { type: "null" }] }
|
||||
if (properties?.extra) properties.extra = { anyOf: [properties.extra, { type: "null" }] }
|
||||
}
|
||||
if (path === "/experimental/workspace/warp" && method === "post") {
|
||||
const properties = operation.requestBody.content?.["application/json"]?.schema?.properties
|
||||
if (properties?.id) properties.id = nullable(properties.id)
|
||||
}
|
||||
}
|
||||
for (const response of Object.values(operation.responses ?? {})) {
|
||||
for (const content of Object.values(response.content ?? {})) {
|
||||
|
|
|
|||
|
|
@ -1019,7 +1019,7 @@ export class Workspace extends HeyApiClient {
|
|||
parameters?: {
|
||||
directory?: string
|
||||
workspace?: string
|
||||
id?: string
|
||||
id?: string | null
|
||||
sessionID?: string
|
||||
},
|
||||
options?: Options<never, ThrowOnError>,
|
||||
|
|
|
|||
|
|
@ -6665,7 +6665,7 @@ export type ExperimentalWorkspaceRemoveResponse =
|
|||
|
||||
export type ExperimentalWorkspaceWarpData = {
|
||||
body?: {
|
||||
id: string
|
||||
id: string | null
|
||||
sessionID: string
|
||||
}
|
||||
path?: never
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue