Skip to content

Commit

Permalink
fix: parameters mapping, fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrdtr committed Oct 24, 2023
1 parent 8eb03f0 commit 17a140c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@ export const mapProperties = (

return Object.entries(schema?.properties ?? []).map(([key, value]) => ({
// @ts-ignore
...value,
schema: {
// @ts-ignore
...value,
// @ts-ignore
type: value?.type,
},
in: name,
name: key,
// @ts-ignore
type: value?.type,
// @ts-ignore
required: schema!.required?.includes(key) ?? false
}))
}
Expand Down

0 comments on commit 17a140c

Please sign in to comment.