Skip to content
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

Set TypeId for structured types at decode. #1260

Merged
merged 1 commit into from
Jan 29, 2021

Conversation

AlinMoldovean
Copy link
Contributor

No description provided.

Copy link
Contributor

@mregen mregen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see functional changes when the new parameter is not used, so this is ok.
But the interface change causes a build error if not being addressed, so version json should be bumped to 366 due to the interface change. Please add it, then its all fine.

-- just some head scratching. If it can be recompiled to the new libs without change we can stick with 365...

/// <param name="systemType">The system type of the encopdeable object to be read</param>
/// <param name="encodeableTypeId">The TypeId for the <see cref="IEncodeable"/> instance that will be read.</param>
/// <returns>An <see cref="IEncodeable"/> object that was read from the stream.</returns>
IEncodeable ReadEncodeable(string fieldName, System.Type systemType, ExpandedNodeId encodeableTypeId = null);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like a breaking change to IDecoder interface. We need to bump up version json to 366.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or is a caller able to consume it without code change? Then we can stick with 365

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be no breaking change since since default value is set encodeableTypeId = null.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AlinMoldovean, then it looks good to me.

Copy link
Contributor

@mregen mregen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, then its all good

@AlinMoldovean AlinMoldovean merged commit b363442 into OPCFoundation:master Jan 29, 2021
fremat pushed a commit to fremat/UA-.NETStandard that referenced this pull request Feb 10, 2021
@AlinMoldovean AlinMoldovean deleted the encoders branch March 29, 2021 07:47
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.

None yet

2 participants