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

unpack objects with with redundant properties #6

Closed
amityo opened this issue May 2, 2013 · 3 comments
Closed

unpack objects with with redundant properties #6

amityo opened this issue May 2, 2013 · 3 comments

Comments

@amityo
Copy link

amityo commented May 2, 2013

hello , great library!
i'll use an example to describe my problem: i'm trying to unpack object Foo to object Bar. with the Map option of the SerializerContext - SerializationMethod but an exception is thrown:

Foo {
prop string X,Y,
prop int A
}

Bar { prop X,Y,Z }

is there a way to get X and Y values in the new object and leave Z null or default (and ignore A completly)?

thank you

@yfakariya
Copy link
Member

I'm sorry, it is a bug.
I forgot to implement to skip unknown value on deserializing map, so serializer try to the value as key string.
I'll fix it soon. Thank you your report.

@yfakariya
Copy link
Member

I fixed this issue, and I exposed new package(0.3.1) to nuget. Thanks.

@amityo
Copy link
Author

amityo commented May 7, 2013

thank you!!

@amityo amityo closed this as completed May 7, 2013
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

No branches or pull requests

2 participants