Skip to content

Commit efcbcf4

Browse files
committed
Ajustes nos validadores
Correção nos validadores - IsOptional - IsRequired
1 parent c1c06d8 commit efcbcf4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/validators/Validator.IsOptional.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function TValidatorIsOptional.Check: IDataValidatorResult;
6565
LIsOptional: Boolean;
6666
begin
6767
LValue := GetValueAsString;
68-
R := True;
68+
R := False;
6969
LIsOptional := True;
7070

7171
if Assigned(FOptionalExecute) then

src/validators/Validator.JSON.Key.IsOptional.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function TDataValidatorJSONKeyIsOptional.Check: IDataValidatorResult;
6666
LJSONPair: TJSONPair;
6767
begin
6868
LValue := GetValueAsString;
69-
R := True;
69+
R := False;
7070
LIsOptional := True;
7171

7272
if Assigned(FFuncExecute) then

src/validators/Validator.JSON.Key.IsRequired.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function TDataValidatorJSONKeyIsRequired.Check: IDataValidatorResult;
6666
LJSONPair: TJSONPair;
6767
begin
6868
LValue := GetValueAsString;
69-
R := True;
69+
R := False;
7070
LIsRequired := True;
7171

7272
if Assigned(FFuncExecute) then

0 commit comments

Comments
 (0)