Skip to content

Commit

Permalink
Ajustes nos validadores
Browse files Browse the repository at this point in the history
Correção nos validadores
 - IsOptional
 - IsRequired
  • Loading branch information
dliocode committed Sep 17, 2021
1 parent c1c06d8 commit efcbcf4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/validators/Validator.IsOptional.pas
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function TValidatorIsOptional.Check: IDataValidatorResult;
LIsOptional: Boolean;
begin
LValue := GetValueAsString;
R := True;
R := False;
LIsOptional := True;

if Assigned(FOptionalExecute) then
Expand Down
2 changes: 1 addition & 1 deletion src/validators/Validator.JSON.Key.IsOptional.pas
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function TDataValidatorJSONKeyIsOptional.Check: IDataValidatorResult;
LJSONPair: TJSONPair;
begin
LValue := GetValueAsString;
R := True;
R := False;
LIsOptional := True;

if Assigned(FFuncExecute) then
Expand Down
2 changes: 1 addition & 1 deletion src/validators/Validator.JSON.Key.IsRequired.pas
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function TDataValidatorJSONKeyIsRequired.Check: IDataValidatorResult;
LJSONPair: TJSONPair;
begin
LValue := GetValueAsString;
R := True;
R := False;
LIsRequired := True;

if Assigned(FFuncExecute) then
Expand Down

0 comments on commit efcbcf4

Please sign in to comment.