Skip to content

Commit

Permalink
Complex types client can ignore isoptional fields for structure (#1503)
Browse files Browse the repository at this point in the history
fixes #1476 
 Improve IOP, some recent ModelCompiler versions (starting with errata 1.04.9) produce invalid output and all IsOptional fields have become true by default, causing the complex types client to bail out for Structures created with this ModelCompiler release. However, the IsOptional field can be ignored.
ModelCompiler is fixed in 1.04.10 and greater
  • Loading branch information
mregen committed Sep 13, 2021
1 parent 21546b0 commit a4bf0ab
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Libraries/Opc.Ua.Client.ComplexTypes/ComplexTypeSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -685,11 +685,6 @@ private StructureDefinition GetStructureDefinition(DataTypeNode dataTypeNode)
{
return null;
}
if (structureDefinition.StructureType == StructureType.Structure &&
field.IsOptional)
{
return null;
}
}
return structureDefinition;
}
Expand Down

0 comments on commit a4bf0ab

Please sign in to comment.