File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/org/dynapi/openapispec/core/schema Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ protected JSONObject finalized() {
7272 finalizedItems = types .get (0 ).finalized ();
7373 } else {
7474 finalizedItems = new JSONObject ()
75- .put ("oneOf" , new JSONArray (types .stream ().map (Schema ::finalized ).toList ()));
75+ .put ("oneOf" , new JSONArray (types .stream ().map (Schema ::getOpenApiSpec ).toList ()));
7676 }
7777
7878 return new JSONObject ()
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ protected JSONObject finalized() {
7171
7272 Map <String , JSONObject > finalizedProperties = properties .entrySet ()
7373 .stream ()
74- .collect (Collectors .toMap (Map .Entry ::getKey , e -> e .getValue ().finalized ()));
74+ .collect (Collectors .toMap (Map .Entry ::getKey , e -> e .getValue ().getOpenApiSpec ()));
7575
7676 return new JSONObject ()
7777 .put ("type" , "object" )
You can’t perform that action at this time.
0 commit comments