Skip to content

Commit

Permalink
Ajustes gerais
Browse files Browse the repository at this point in the history
  • Loading branch information
dliocode committed Oct 8, 2021
1 parent a6eb02e commit 10a0447
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/DataValidator.Context.pas
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ procedure TDataValidatorContext<T>.AfterConstruction;
destructor TDataValidatorContext<T>.Destroy;
begin
FList.Clear;
FList.DisposeOf;
FList.Free;

inherited;
end;
Expand Down
8 changes: 7 additions & 1 deletion src/core/DataValidator.JSON.pas
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ constructor TDataValidatorJSON.Create(const AJSON: TJSONArray);
destructor TDataValidatorJSON.Destroy;
begin
FList.Clear;
FList.DisposeOf;
FList.Free;

inherited;
end;
Expand Down Expand Up @@ -342,6 +342,9 @@ function TDataValidatorJSON.CheckItemValueObject(const AName: string; const AChe
LOK := False;
LInfo.Add(LValidatorResult.Informations as IDataValidatorInformations);

if (LValidatorItem is TDataValidatorJSONKeyIsRequired) then
Break;

if not ACheckAll then
Break;
end
Expand Down Expand Up @@ -406,6 +409,9 @@ function TDataValidatorJSON.CheckItemValueArray(const AName: string; const AChec
LOK := False;
LInfo.Add(LValidatorResult.Informations as IDataValidatorInformations);

if (LValidatorItem is TDataValidatorJSONKeyIsRequired) then
Break;

if not ACheckAll then
Break;
end
Expand Down

0 comments on commit 10a0447

Please sign in to comment.