Skip to content

Commit

Permalink
Fixed a bug where the OpenAPI V3 spec was incorrect. The bug was intr…
Browse files Browse the repository at this point in the history
…oduced in datahub-project#10939.
  • Loading branch information
ajoymajumdar committed Jul 23, 2024
1 parent 123e84c commit 8800c0d
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import io.swagger.v3.oas.models.Components;
import io.swagger.v3.oas.models.OpenAPI;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
Expand Down Expand Up @@ -150,6 +151,11 @@ private <K, V> Map<K, V> concat(Supplier<Map<K, V>> a, Supplier<Map<K, V>> b) {
: b.get() == null
? a.get()
: Stream.concat(a.get().entrySet().stream(), b.get().entrySet().stream())
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
.collect(
Collectors.toMap(
Map.Entry::getKey,
Map.Entry::getValue,
(v1, v2) -> v1,
LinkedHashMap::new));
}
}

0 comments on commit 8800c0d

Please sign in to comment.