Skip to content

Commit

Permalink
Formatting steps as array
Browse files Browse the repository at this point in the history
  • Loading branch information
MZole committed Oct 16, 2024
1 parent 005517c commit bd04b1c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ await _contentConverters
}

var recipe = JObject.FromObject(new RecipeDescriptor())!;
recipe["steps"] = JObject.FromObject(new { steps = new[] { new { name = "content", data = contentItems } } });
recipe["steps"] = new JsonArray(JObject.FromObject(new { name = "content", data = contentItems }));

return recipe.ToString();
}
Expand Down

0 comments on commit bd04b1c

Please sign in to comment.