Skip to content

Commit 9b37bd6

Browse files
committed
feat: add types to description
1 parent c721539 commit 9b37bd6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/common/decorators/api-dot-notation-query.decorator.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ const getQueryDecorators = (model: Function, parentProperty?: string) => {
2626
return [
2727
ApiQuery({
2828
name: parentProperty ? `${parentProperty}.${property}` : property,
29-
type: meta.type,
29+
...meta,
30+
type: 'string',
3031
required: false,
3132
example: undefined,
32-
3333
description: getDescription(meta.description, meta.example, meta.type),
3434
}),
3535
];
@@ -41,6 +41,8 @@ const getQueryDecorators = (model: Function, parentProperty?: string) => {
4141
return [
4242
ApiQuery({
4343
name: parentProperty ? `${parentProperty}.${property}` : property,
44+
...meta,
45+
type: 'string',
4446
description: getDescription(meta.description, meta.example, meta.type),
4547
required: false,
4648
example: undefined,

0 commit comments

Comments
 (0)