forked from loafle/openapi-generator-original
don't forget to copy the object mapper for serialization, in order to avoid setting affects other serialization (#4093)
This commit is contained in:
parent
ec4ac07dfe
commit
c231675a05
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user