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();
|
SimpleModule module = createModule();
|
||||||
try {
|
try {
|
||||||
return Yaml.mapper()
|
return Yaml.mapper()
|
||||||
|
.copy()
|
||||||
.registerModule(module)
|
.registerModule(module)
|
||||||
.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true)
|
.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true)
|
||||||
.writeValueAsString(openAPI)
|
.writeValueAsString(openAPI)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user