Skip to content

Commit 8d43740

Browse files
committed
disallow null in openapiarray
1 parent 712b6d4 commit 8d43740

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Microsoft.OpenApi/Validations/Rules/RuleHelpers.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,6 @@ public static void ValidateDataTypeMismatch(
114114
return;
115115
}
116116

117-
if (value is OpenApiNull)
118-
{
119-
return;
120-
}
121-
122117
// If value is not a string and also not an array, there is a data mismatch.
123118
if (!(value is OpenApiArray))
124119
{

0 commit comments

Comments
 (0)