Skip to content

Commit

Permalink
fix: Merge pull request #123 from seamapi/number-param-interaction
Browse files Browse the repository at this point in the history
Support interacting with number params
  • Loading branch information
andrii-balitskyi authored Mar 13, 2024
2 parents 9677d8c + 10b3b7f commit 9be892d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/interact-for-open-api-object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 9be892d

Please sign in to comment.