File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 8
8
import com .fasterxml .jackson .dataformat .yaml .YAMLFactory ;
9
9
import com .fasterxml .jackson .dataformat .yaml .YAMLGenerator ;
10
10
import io .swagger .codegen .*;
11
+ import io .swagger .jackson .mixin .ResponseSchemaMixin ;
12
+ import io .swagger .models .Response ;
11
13
import io .swagger .models .Swagger ;
12
14
import io .swagger .util .DeserializationModule ;
15
+ import io .swagger .util .Yaml ;
13
16
import org .apache .commons .io .FileUtils ;
14
17
import org .slf4j .Logger ;
15
18
import org .slf4j .LoggerFactory ;
@@ -92,5 +95,6 @@ private void configureMapper(ObjectMapper mapper) {
92
95
mapper .configure (SerializationFeature .FAIL_ON_EMPTY_BEANS , false );
93
96
mapper .configure (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS , false );
94
97
mapper .configure (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES , false );
98
+ mapper .addMixIn (Response .class , ResponseSchemaMixin .class );
95
99
}
96
100
}
You can’t perform that action at this time.
0 commit comments