From 10b3b7fa65f1bc07c3c1e856c7d60fee494ad172 Mon Sep 17 00:00:00 2001 From: Andrii Balitskyi <10balian10@gmail.com> Date: Tue, 12 Mar 2024 23:42:14 +0100 Subject: [PATCH] Support interacting with number params --- lib/interact-for-open-api-object.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/interact-for-open-api-object.ts b/lib/interact-for-open-api-object.ts index c68ab9e..1997b0e 100644 --- a/lib/interact-for-open-api-object.ts +++ b/lib/interact-for-open-api-object.ts @@ -250,6 +250,16 @@ export const interactForOpenApiObject = async ( }, ctx ) + return interactForOpenApiObject(args, ctx) + } else if (prop.type === "number") { + const { value } = await prompts({ + name: "value", + message: `${paramToEdit}:`, + type: "number", + }) + + args.params[paramToEdit] = value + return interactForOpenApiObject(args, ctx) } }