We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 656259a commit 07987aeCopy full SHA for 07987ae
src/Microsoft.OpenApi/Models/OpenApiSchema.cs
@@ -834,7 +834,7 @@ private static int CountEnumSetFlags(JsonSchemaType? schemaType)
834
foreach (JsonSchemaType value in System.Enum.GetValues(typeof(JsonSchemaType)))
835
{
836
// Ignore the None flag and check if the flag is set
837
- if ((schemaType & value) == value)
+ if ((schemaType.Value.HasFlag(value))
838
839
count++;
840
}
0 commit comments