Skip to content

Build updates#6

Merged
opcfoundation-org merged 4 commits into
masterfrom
build-updates
Apr 28, 2026
Merged

Build updates#6
opcfoundation-org merged 4 commits into
masterfrom
build-updates

Conversation

@opcfoundation-org
Copy link
Copy Markdown
Contributor

Get rid of build dir.

}
if (value is JObject jo)
{
return CanonicalizeJsonToken(jo, field.DataType) ?? jo;
// BrowseName "Default XML" / "Default JSON" / "Default Binary".
foreach (var node in _sequence)
{
if (node is UADataType dt && node.NodeId != null)
Comment on lines +1950 to +1961
if (child != null)
{
if (child.LocalName == "NamespaceIndex")
{
if (!Int16.TryParse(child.InnerText, out var value))
{
throw new InvalidDataException($"{input.InnerText} is a QualifiedName.");
}

child = child.NextSibling as XmlElement;
}
}
Comment on lines +1963 to +1969
if (child != null)
{
if (child.LocalName == "Name")
{
name = child.InnerText.Trim();
}
}
Comment on lines +1980 to +1987
if (child != null)
{
if (child.LocalName == "Locale")
{
locale = child.InnerText.Trim();
child = child.NextSibling as XmlElement;
}
}
Comment on lines +1989 to +1995
if (child != null)
{
if (child.LocalName == "Text")
{
text = child.InnerText.Trim();
}
}
private static byte[] TryFromBase64(string s)
{
try { return Convert.FromBase64String(s); }
catch { return Array.Empty<byte>(); }
Comment on lines +1891 to +1894
catch
{
throw new InvalidDataException($"{input.InnerText} is a DateTime.");
}
Comment on lines +74 to +86
foreach (var entry in fwds)
{
if (entry.ReferenceTypeId != HasEncodingRefId) continue;
if (!_nodes.TryGetValue(entry.TargetNodeId, out var encodingNode)) continue;
var encBn = StripNamespacePrefix(encodingNode.BrowseName);
if (encBn == null) continue;

_encodingToDataType[entry.TargetNodeId] = node.NodeId!;
if (string.Equals(encBn, DefaultXmlBrowseName, StringComparison.Ordinal))
_dataTypeToXmlEncoding[node.NodeId!] = entry.TargetNodeId;
// Default JSON / Default Binary recorded in _encodingToDataType so reader-side
// normalization still works, but only XML needs the reverse map.
}
Comment on lines +162 to +174
foreach (var node in _sequence)
{
if (node.NodeClass != NodeClass.UAObject) continue;
var bn = StripNamespacePrefix(node.BrowseName);
if (!string.Equals(bn, DefaultJsonBrowseName, StringComparison.Ordinal)) continue;
// Confirm it really is a HasEncoding target of a DataType.
if (node.NodeId != null &&
_inverseRefs.TryGetValue(node.NodeId, out var inv) &&
inv.Any(e => e.ReferenceTypeId == HasEncodingRefId))
{
toRemove.Add(node.NodeId);
}
}
@opcfoundation-org opcfoundation-org merged commit 42c2c1b into master Apr 28, 2026
4 of 5 checks passed
@opcfoundation-org opcfoundation-org deleted the build-updates branch April 28, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants