mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 16:56:53 +00:00
Add DiscoverableSubtypeResolver to static YAML_MAPPER
This commit is contained in:
1 parent
223b2fc263
commit
567c368a81
1 file changed
+3
-1
@@ -20,13 +20,15 @@ import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import javax.annotation.Nonnull;
|
||||
import io.dropwizard.jackson.DiscoverableSubtypeResolver;
|
||||
import org.whispersystems.textsecuregcm.configuration.secrets.SecretsModule;
|
||||
|
||||
public class SystemMapper {
|
||||
|
||||
private static final ObjectMapper JSON_MAPPER = configureMapper(new ObjectMapper());
|
||||
|
||||
private static final ObjectMapper YAML_MAPPER = configureMapper(new YAMLMapper());
|
||||
private static final ObjectMapper YAML_MAPPER = configureMapper(new YAMLMapper())
|
||||
.setSubtypeResolver(new DiscoverableSubtypeResolver());
|
||||
|
||||
|
||||
@Nonnull
|
||||
|
||||
Reference in new issue
Block a user