We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2132213 commit 8ca9253Copy full SHA for 8ca9253
src/validators/base.ts
@@ -30,7 +30,7 @@ export abstract class BaseValidator<T> {
30
validate(value: T | undefined | null): ValidationResult {
31
const errors: ValidationError[] = []
32
33
- if ((value === undefined || value === null)) {
+ if ((value === undefined || value === null || value === '')) {
34
if (!this.isRequired) {
35
return this.isPartOfShape
36
? { valid: true, errors: {} }
0 commit comments