fix: move parameter schema keywords location

This commit is contained in:
hgpark
2024-03-22 12:25:15 +09:00
parent a5f2baa40f
commit 1348638cf8

View File

@@ -25,11 +25,11 @@ export const mapProperties = (
else throw new Error(`Can't find model ${schema}`)
return Object.entries(schema?.properties ?? []).map(([key, value]) => {
const { type: valueType = undefined, ...rest } = value as any
const { type: valueType = undefined, description, examples, ...schemaProperties } = value as any
return {
// @ts-ignore
...rest,
schema: { type: valueType },
description, examples,
schema: { type: valueType, ...schemaProperties },
in: name,
name: key,
// @ts-ignore