Skip to content

Commit 1869e8b

Browse files
committed
possible fix for optional BooleanString decoding issue (#872)
1 parent c6af9a8 commit 1869e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export const ElysiaType = {
409409
.Decode((value) => {
410410
if (typeof value === 'string') return value === 'true'
411411

412-
if (property && !Value.Check(schema, value))
412+
if (value !== undefined && !Value.Check(schema, value))
413413
throw new ValidationError('property', schema, value)
414414

415415
return value

0 commit comments

Comments
 (0)