Skip to content

Commit 73290d1

Browse files
authored
fix: remove prop descriptions (#399)
1 parent 7636485 commit 73290d1

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -88,19 +88,15 @@ export const interactForOpenApiObject = async (
8888
: []),
8989
...Object.keys(properties)
9090
.map((k) => {
91-
let propDesc = (properties[k] as any)?.description ?? ""
9291
return {
9392
title: k + (required.includes(k) ? "*" : ""),
9493
value: k,
9594
description:
9695
args.params[k] !== undefined
9796
? typeof args.params[k] === "object"
98-
? `${ellipsis(
99-
JSON.stringify(args.params[k]),
100-
60
101-
)} ${propDesc}`
102-
: `[${args.params[k]}] ${propDesc}`
103-
: propDesc,
97+
? ellipsis(JSON.stringify(args.params[k]), 60)
98+
: `[${args.params[k]}]`
99+
: undefined,
104100
}
105101
})
106102
.sort((a, b) => propSortScore(b.value) - propSortScore(a.value)),

0 commit comments

Comments
 (0)