File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
modules/swagger-codegen/src/main/java/io/swagger/codegen/languages Expand file tree Collapse file tree 1 file changed +3
-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 .OperationResponseMixin ;
11
12
import io .swagger .jackson .mixin .ResponseSchemaMixin ;
12
13
import io .swagger .models .Model ;
14
+ import io .swagger .models .Operation ;
13
15
import io .swagger .models .Response ;
14
16
import io .swagger .models .Swagger ;
15
17
import io .swagger .util .DeserializationModule ;
@@ -120,6 +122,7 @@ private void configureMapper(ObjectMapper mapper) {
120
122
mapper .configure (SerializationFeature .WRITE_DATES_AS_TIMESTAMPS , false );
121
123
mapper .configure (DeserializationFeature .FAIL_ON_UNKNOWN_PROPERTIES , false );
122
124
mapper .addMixIn (Response .class , ResponseSchemaMixin .class );
125
+ mapper .addMixIn (Operation .class , OperationResponseMixin .class );
123
126
ReferenceSerializationConfigurer .serializeAsComputedRef (mapper );
124
127
}
125
128
}
You can’t perform that action at this time.
0 commit comments