Skip to content

Commit f271fc8

Browse files
committed
chore: serialize null objects
1 parent 441a60e commit f271fc8

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/LEGO.AsyncAPI/Writers/AsyncApiWriterExtensions.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -301,10 +301,7 @@ public static void WriteRequiredMap<T>(
301301
Action<IAsyncApiWriter, string, T> action)
302302
where T : IAsyncApiElement
303303
{
304-
if (elements != null && elements.Any())
305-
{
306-
writer.WriteMapInternal(name, elements, action);
307-
}
304+
writer.WriteMapInternal(name, elements, action);
308305
}
309306

310307
/// <summary>

0 commit comments

Comments
 (0)