Skip to content

Commit f9019b1

Browse files
committed
chore: empty channels should be allowed
1 parent e6b9bf4 commit f9019b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LEGO.AsyncAPI/Validation/Rules/AsyncApiDocumentRules.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public static class AsyncApiDocumentRules
3030
context.Exit();
3131

3232
context.Enter("channels");
33-
if (document.Channels == null || !document.Channels.Keys.Any())
33+
if (document.Channels == null)
3434
{
3535
context.CreateError(
3636
nameof(DocumentRequiredFields),

0 commit comments

Comments
 (0)