Skip to content

Commit

Permalink
Show model properties in response body (#6568)
Browse files Browse the repository at this point in the history
  • Loading branch information
chidozieononiwu authored Jul 24, 2023
1 parent d322131 commit a9c0bfc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ public class Schema : Items, ITokenSerializable
tableItems = this.TokenSerializePropertyIntoTableItems(context, this.tableItems);
var tableRet = new List<CodeFileToken>();
var tableRows = new List<CodeFileToken>();
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)
{
Expand Down

0 comments on commit a9c0bfc

Please sign in to comment.