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

WithNodeDeserializer Does not wrap ObjectNodeDeserializer like shown in ValidatingDuringDeserialization.cs #607

Open
klaritan opened this issue May 4, 2021 · 0 comments
Labels

Comments

@klaritan
Copy link

klaritan commented May 4, 2021

https://github.com/aaubry/YamlDotNet/blob/75d0cb18161e421f07e1cb5b07c005645ac34fa7/YamlDotNet.Samples/ValidatingDuringDeserialization.cs

Here it says ValidatingNodeDeserializer is wrapping ObjectNodeDeserializer.

However, at this line:

if (nodeDeserializer.Deserialize(parser, expectedType, nestedObjectDeserializer, out value))

It throws YamlDotNet.Core.YamlException saying "No node deserializer was able to deserialize the node ".

Either the sample/documentation is outdated or this is a bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants