|
@@ -63,8 +63,6 @@ Type
|
|
|
TPropertyType = TPascalType;
|
|
TPropertyType = TPascalType;
|
|
|
TPropertyTypes = TPascalTypes;
|
|
TPropertyTypes = TPascalTypes;
|
|
|
|
|
|
|
|
- { TPascalProperty }
|
|
|
|
|
-
|
|
|
|
|
{ TPascalPropertyData }
|
|
{ TPascalPropertyData }
|
|
|
|
|
|
|
|
TPascalPropertyData = class(TObject)
|
|
TPascalPropertyData = class(TObject)
|
|
@@ -674,12 +672,27 @@ procedure TSchemaData.CheckDependencies;
|
|
|
var
|
|
var
|
|
|
I : Integer;
|
|
I : Integer;
|
|
|
lData : TPascalTypeData;
|
|
lData : TPascalTypeData;
|
|
|
|
|
+ lName : string;
|
|
|
|
|
|
|
|
begin
|
|
begin
|
|
|
For I:=0 to TypeCount-1 do
|
|
For I:=0 to TypeCount-1 do
|
|
|
begin
|
|
begin
|
|
|
lData:=Types[I];
|
|
lData:=Types[I];
|
|
|
- CheckProps(lData,lData);
|
|
|
|
|
|
|
+ Case lData.Pascaltype of
|
|
|
|
|
+ ptAnonStruct,
|
|
|
|
|
+ ptSchemaStruct:
|
|
|
|
|
+ CheckProps(lData,lData) ;
|
|
|
|
|
+ ptArray:
|
|
|
|
|
+ begin
|
|
|
|
|
+ // Resolve element type ref
|
|
|
|
|
+ if (lData.Schema.Items.Count=1) then
|
|
|
|
|
+ begin
|
|
|
|
|
+ lName:=lData.Schema.Items[0].Ref;
|
|
|
|
|
+ if lName<>'' then
|
|
|
|
|
+ lData.ElementTypeData:=GetPascalTypeDataFromRef(lName);
|
|
|
|
|
+ end;
|
|
|
|
|
+ end;
|
|
|
|
|
+ end;
|
|
|
end;
|
|
end;
|
|
|
end;
|
|
end;
|
|
|
|
|
|