Skip to content

Commit 07987ae

Browse files
Update src/Microsoft.OpenApi/Models/OpenApiSchema.cs
Co-authored-by: Andrew Omondi <[email protected]>
1 parent 656259a commit 07987ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiSchema.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,7 @@ private static int CountEnumSetFlags(JsonSchemaType? schemaType)
834834
foreach (JsonSchemaType value in System.Enum.GetValues(typeof(JsonSchemaType)))
835835
{
836836
// Ignore the None flag and check if the flag is set
837-
if ((schemaType & value) == value)
837+
if ((schemaType.Value.HasFlag(value))
838838
{
839839
count++;
840840
}

0 commit comments

Comments
 (0)