mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 21:07:58 +02:00
* Search for correct element type when checking array types
This commit is contained in:
parent
0ca0990e8b
commit
8cedb10c3a
@ -876,7 +876,11 @@ begin
|
||||
lElTypeData:=GetSchemaTypeData(Nil,lSchema.Items[0]);
|
||||
// Data.FindSchemaTypeData('Array of string')
|
||||
lPascalName:=ArrayTypePrefix+lElTypeData.PascalName+ArrayTypeSuffix;
|
||||
lName:='['+lElTypeData.SchemaName+']';
|
||||
|
||||
lName:='['+lElTypeData.SchemaName;
|
||||
if lSchema.Items[0].Validations.HasKeywordData(jskformat) then
|
||||
lName:=lName+'--'+lSchema.Items[0].Validations.Format;
|
||||
lName:=LName+']';
|
||||
Result:=FindSchemaTypeData(lName);
|
||||
if Result<>Nil then
|
||||
lName:='';
|
||||
|
Loading…
Reference in New Issue
Block a user