don't forget to copy the object mapper for serialization, in order to avoid setting affects other serialization (#4093)

This commit is contained in:
Dec12 | Fujigon 2019-10-14 23:55:30 +09:00 committed by William Cheng
parent ec4ac07dfe
commit c231675a05

View File

@ -19,6 +19,7 @@ public class SerializerUtils {
SimpleModule module = createModule();
try {
return Yaml.mapper()
.copy()
.registerModule(module)
.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true)
.writeValueAsString(openAPI)