-
Notifications
You must be signed in to change notification settings - Fork 957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Array xmlns encoding/decoding #2309
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2309 +/- ##
==========================================
+ Coverage 53.27% 53.61% +0.33%
==========================================
Files 331 331
Lines 63816 63811 -5
Branches 13100 13098 -2
==========================================
+ Hits 34001 34210 +209
+ Misses 26065 25874 -191
+ Partials 3750 3727 -23 ☔ View full report in Codecov by Sentry. |
Not seeing a PushNamespace at this line. Which method is it in? I did double check all PushNamespace calls in XmlEncoder.cs and they all seem to be correct (before reading an element defined by a core type). |
I am concerned the fix addresses the issue with arrays nested within a type but it may break top level arrays. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
upon discussion today in the user group this PR is approved.
@MarkusHorstmann please resolve the merge conflict. |
Done. The test failures don't seem to be related to my changes. Please let me know if you think otherwise. |
Proposed changes
XmlEncoder.WriteArray and XmlDecoder.ReadArray always use the OPC UA XML namespace (http://opcfoundation.org/UA/2008/02/Types.xsd) for the field element that contains the array, regardless of the namespace that the caller may have pushed.
Related Issues
Types of changes
What types of changes does your code introduce?
Put an
x
in the boxes that apply. You can also fill these out after creating the PR.Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.