diff --git a/api_client_builder.go b/api_client_builder.go index 4cc0ad2..2ac0a91 100644 --- a/api_client_builder.go +++ b/api_client_builder.go @@ -26,7 +26,9 @@ func RegisterDefaultDeserializer(metaFactory func() s.ParseNodeFactory) { if err == nil && contentType != "" { registry := s.DefaultParseNodeFactoryInstance registry.Lock() - registry.ContentTypeAssociatedFactories[contentType] = factory + if _, ok := registry.ContentTypeAssociatedFactories[contentType]; !ok { + registry.ContentTypeAssociatedFactories[contentType] = factory + } registry.Unlock() } }