Skip to content

Commit 17deebc

Browse files
gavinbarronbaywet
andauthored
Update src/Microsoft.OpenApi/Validations/Rules/OpenApiSchemaRules.cs
Co-authored-by: Vincent Biret <vibiret@microsoft.com>
1 parent 592454e commit 17deebc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public static class OpenApiSchemaRules
9191
/// between other schemas which may satisfy the payload description.</param>
9292
public static bool ValidateChildSchemaAgainstDiscriminator(OpenApiSchema schema, string discriminatorName)
9393
{
94-
if (discriminatorName == null)
94+
if (string.IsNullOrEmpty(discriminatorName))
9595
{
9696
return false;
9797
}

0 commit comments

Comments
 (0)