|
schema = Json31.mapper().readValue(Json31.pretty(schema), Schema.class); |
It seems kind of weird to me that an ObjectMapper is used to clone the Model here because this can lead to issues if the ObjectMapper is configured differently (e.g. using Mixins) and might break expected behaviour.
swagger-core/modules/swagger-core/src/main/java/io/swagger/v3/core/util/AnnotationsUtils.java
Line 1718 in 9862c44
It seems kind of weird to me that an ObjectMapper is used to clone the Model here because this can lead to issues if the ObjectMapper is configured differently (e.g. using Mixins) and might break expected behaviour.