Skip to content

Commit 10a0447

Browse files
committed
Ajustes gerais
1 parent a6eb02e commit 10a0447

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/core/DataValidator.Context.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ procedure TDataValidatorContext<T>.AfterConstruction;
307307
destructor TDataValidatorContext<T>.Destroy;
308308
begin
309309
FList.Clear;
310-
FList.DisposeOf;
310+
FList.Free;
311311

312312
inherited;
313313
end;

src/core/DataValidator.JSON.pas

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ constructor TDataValidatorJSON.Create(const AJSON: TJSONArray);
9696
destructor TDataValidatorJSON.Destroy;
9797
begin
9898
FList.Clear;
99-
FList.DisposeOf;
99+
FList.Free;
100100

101101
inherited;
102102
end;
@@ -342,6 +342,9 @@ function TDataValidatorJSON.CheckItemValueObject(const AName: string; const AChe
342342
LOK := False;
343343
LInfo.Add(LValidatorResult.Informations as IDataValidatorInformations);
344344

345+
if (LValidatorItem is TDataValidatorJSONKeyIsRequired) then
346+
Break;
347+
345348
if not ACheckAll then
346349
Break;
347350
end
@@ -406,6 +409,9 @@ function TDataValidatorJSON.CheckItemValueArray(const AName: string; const AChec
406409
LOK := False;
407410
LInfo.Add(LValidatorResult.Informations as IDataValidatorInformations);
408411

412+
if (LValidatorItem is TDataValidatorJSONKeyIsRequired) then
413+
Break;
414+
409415
if not ACheckAll then
410416
Break;
411417
end

0 commit comments

Comments
 (0)