Skip to content

Commit

Permalink
fix import mapping for JsonValue (OpenAPITools#11216)
Browse files Browse the repository at this point in the history
  • Loading branch information
wing328 authored Jan 3, 2022
1 parent 6397421 commit 15b228c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,12 @@ public Map<String, Object> postProcessModelsEnum(Map<String, Object> objs) {
.forEach(cm -> {
cm.imports.add(importMapping.get("JsonValue"));
cm.imports.add(importMapping.get("JsonProperty"));
Map<String, String> item = new HashMap<>();
item.put("import", importMapping.get("JsonValue"));
item.put("import", importMapping.get("JsonProperty"));
imports.add(item);
Map<String, String> itemJsonValue = new HashMap<>();
itemJsonValue.put("import", importMapping.get("JsonValue"));
imports.add(itemJsonValue);
Map<String, String> itemJsonProperty = new HashMap<>();
itemJsonProperty.put("import", importMapping.get("JsonProperty"));
imports.add(itemJsonProperty);
});

return objs;
Expand Down

0 comments on commit 15b228c

Please sign in to comment.