Skip to content

Commit 0814a56

Browse files
author
Alexander Kharkovey
committed
fix(json-api-sdk): incorrect validate if type field is object
1 parent a0cbf7a commit 0814a56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libs/json-api-nestjs/src/lib/factory/ajv/utils/input-body-post-schema.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ export function inputBodyPostSchema(
7777
type: 'boolean',
7878
};
7979
break;
80+
case Object:
81+
dataType = {
82+
type: 'object',
83+
};
84+
break;
8085
default:
8186
dataType = {
8287
type: 'string',

0 commit comments

Comments
 (0)