You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 24, 2021. It is now read-only.
It looks like the the Nancy.Serializers.* does not take into account that when you call BindTo then the BindingContext can contain an existing instance that should be bound to, they will always try to create a new instance
This is related to #1376
It looks like the the
Nancy.Serializers.*does not take into account that when you callBindTothen theBindingContextcan contain an existing instance that should be bound to, they will always try to create a new instancehttps://github.com/NancyFx/Nancy.Serialization.JsonNet/blob/master/src/Nancy.Serialization.JsonNet/JsonNetBodyDeserializer.cs#L81
The same holds true for the ServiceStack serialization package
https://github.com/NancyFx/Nancy.Serialization.ServiceStack/blob/master/src/Nancy.Serialization.ServiceStack/Nancy.Serialization.ServiceStack/ServiceStackBodyDeserializer.cs#L46
We need to make sure we can distinguish an existing instance from a created one, because the Model is set by the
DefaultBinderhttps://github.com/NancyFx/Nancy/blob/master/src/Nancy/ModelBinding/DefaultBinder.cs#L334