Skip to content

Commit 10b3b7f

Browse files
Support interacting with number params
1 parent 9677d8c commit 10b3b7f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/interact-for-open-api-object.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,16 @@ export const interactForOpenApiObject = async (
250250
},
251251
ctx
252252
)
253+
return interactForOpenApiObject(args, ctx)
254+
} else if (prop.type === "number") {
255+
const { value } = await prompts({
256+
name: "value",
257+
message: `${paramToEdit}:`,
258+
type: "number",
259+
})
260+
261+
args.params[paramToEdit] = value
262+
253263
return interactForOpenApiObject(args, ctx)
254264
}
255265
}

0 commit comments

Comments
 (0)