Skip to content

Commit

Permalink
fix: fix array param converter
Browse files Browse the repository at this point in the history
  • Loading branch information
KS-KIM authored and dziraf committed Feb 17, 2022
1 parent e2fede2 commit 612e09f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/param-converter/prepare-params.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ const prepareParams = (
if (param === undefined) continue

if (property.type() !== 'mixed') {
preparedParams[key] = convertParam(param, property.type())
if (propertyDecorator?.isArray) {
preparedParams[key] = param.map(p => convertParam(p, property.type()))
} else {
preparedParams[key] = convertParam(param, property.type())
}
} else {
if (propertyDecorator?.subProperties.length) {
const { subProperties } = propertyDecorator
Expand Down

0 comments on commit 612e09f

Please sign in to comment.