File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/util Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 4
4
import com .fasterxml .jackson .databind .JsonNode ;
5
5
import com .fasterxml .jackson .databind .ObjectMapper ;
6
6
import com .fasterxml .jackson .databind .SerializationFeature ;
7
+ import com .fasterxml .jackson .dataformat .yaml .YAMLFactory ;
7
8
import com .fasterxml .jackson .datatype .jsr310 .JavaTimeModule ;
8
9
import io .swagger .v3 .core .util .Yaml ;
9
10
import io .swagger .v3 .core .util .Json ;
@@ -114,8 +115,8 @@ public static Options getOptions() {
114
115
115
116
private static ObjectMapper yaml30Mapper = Yaml .mapper ();
116
117
117
- public static void setYaml30Mapper (ObjectMapper yaml30Mapper ) {
118
- DeserializationUtils .yaml30Mapper = yaml30Mapper ;
118
+ public static void setYaml30Mapper (YAMLFactory yamlFactory ) {
119
+ DeserializationUtils .yaml30Mapper = io . swagger . v3 . core . util . ObjectMapperFactory . createYaml ( yamlFactory ) ;
119
120
}
120
121
121
122
public static ObjectMapper getYaml30Mapper () {
@@ -124,8 +125,8 @@ public static ObjectMapper getYaml30Mapper() {
124
125
125
126
private static ObjectMapper yaml31Mapper = Yaml31 .mapper ();
126
127
127
- public static void setYaml31Mapper (ObjectMapper yaml31Mapper ) {
128
- DeserializationUtils .yaml31Mapper = yaml31Mapper ;
128
+ public static void setYaml31Mapper (YAMLFactory yamlFactory ) {
129
+ DeserializationUtils .yaml31Mapper = io . swagger . v3 . core . util . ObjectMapperFactory . createYaml31 ( yamlFactory ) ;
129
130
}
130
131
131
132
public static ObjectMapper getYaml31Mapper () {
You can’t perform that action at this time.
0 commit comments