Skip to content

Commit

Permalink
OpenAPI Extensions no longer work. Fixes #2104
Browse files Browse the repository at this point in the history
  • Loading branch information
bnasslahsen committed Mar 9, 2023
1 parent 9abc9bb commit a47c7d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public OpenAPI build(Locale locale) {
try {
ObjectMapper objectMapper = ObjectMapperProvider.createJson(springDocConfigProperties);
calculatedOpenAPI = objectMapper.readValue(objectMapper.writeValueAsString(openAPI), OpenAPI.class);
objectMapper.setSerializationInclusion(Include.NON_EMPTY);
objectMapper.setSerializationInclusion(Include.ALWAYS);
Map extensionsClone = objectMapper.readValue(objectMapper.writeValueAsString(openAPI.getExtensions()), Map.class);
calculatedOpenAPI.extensions(extensionsClone);
}
Expand Down

0 comments on commit a47c7d9

Please sign in to comment.