Skip to content

Conversation

@johndaniels
Copy link

We need to make sure that we can deserialize the interfaces on the
RootObjectMapping, which requires specifying ResolveAsTypeConverter
on all the appropriate interfaces. I added a test as well, though I'm
not sure it's in the right place, and I added a Deserialize function
on TestElasticClient to make it easier to roundtrip the serialization.

I'm not sure if that was the right place to put the test, or the right approach, but it seemed like a good idea to have tests for whether we can serialize/deserialize RootObjectMapping.

…the server.

We need to make sure that we can deserialize the interfaces on the
RootObjectMapping, which requires specifying ResolveAsTypeConverter
on all the appropriate interfaces. I added a test as well, though I'm
not sure it's in the right place, and I added a Deserialize function
on TestElasticClient to make it easier to roundtrip the serialization.
@johndaniels
Copy link
Author

To be clear, the issue here was that it would throw a SerializationException because it couldn't deserialize to an interface. I can file an issue if we want to do that for book-keeping.

@gmarz gmarz added the Bug label Jul 24, 2014
@gmarz gmarz added this to the NEST 1.0.1 milestone Jul 24, 2014
@gmarz
Copy link
Contributor

gmarz commented Jul 24, 2014

Yikes, good catch @johndaniels. Thank you for finding and fixing this.

An issue won't be necessary, I can mark this PR with the 1.0.1 milestone, which should suffice for tracking purposes.

gmarz added a commit that referenced this pull request Jul 25, 2014
Fix issues with deserializing mappings
@gmarz gmarz merged commit cb7afd1 into elastic:develop Jul 25, 2014
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