From a9c0bfcd17870dbe5fc154fdbb8cdaf399592691 Mon Sep 17 00:00:00 2001 From: Chidozie Ononiwu <31145988+chidozieononiwu@users.noreply.github.com> Date: Mon, 24 Jul 2023 14:28:36 -0700 Subject: [PATCH] Show model properties in response body (#6568) --- .../swagger-api-parser/SwaggerApiParser/Specs/Schema.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/Specs/Schema.cs b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/Specs/Schema.cs index ff0f7869d54..5be4e5a7141 100644 --- a/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/Specs/Schema.cs +++ b/tools/apiview/parsers/swagger-api-parser/SwaggerApiParser/Specs/Schema.cs @@ -37,9 +37,9 @@ public class Schema : Items, ITokenSerializable tableItems = this.TokenSerializePropertyIntoTableItems(context, this.tableItems); var tableRet = new List(); var tableRows = new List(); - if (tableItems.Count > 0) + foreach (var tableItem in this.tableItems) { - tableRows.AddRange(tableItems[0].TokenSerialize(context)); // Serialize only first row to avoid flattened properties + tableRows.AddRange(tableItem.TokenSerialize(context)); } if (tableRows.Count > 0) {