From c4db27f24dabc5e2e98cf977ad83d3a96ff591c2 Mon Sep 17 00:00:00 2001 From: 0x7162 Date: Sun, 5 Jun 2022 20:30:31 -0700 Subject: [PATCH] Fixes #9923 - added recursion for nested objects (#12428) --- .../src/main/resources/htmlDocs2/index.mustache | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache b/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache index ff06be66f3e8..0c9f5e7436c7 100644 --- a/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache +++ b/modules/openapi-generator/src/main/resources/htmlDocs2/index.mustache @@ -452,6 +452,10 @@ } if (schema.$ref != null) { schema = defsParser.$refs.get(schema.$ref); + Object.keys(schema.properties).forEach( (item) => { + if (schema.properties[item].$ref != null) { + schema.properties[item] = defsParser.$refs.get(schema.properties[item].$ref); + } } else if (schema.items != null && schema.items.$ref != null) { schema.items = defsParser.$refs.get(schema.items.$ref); } else {