mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
fix: parameters mapping, fix #41
This commit is contained in:
@@ -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
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user