Skip to content

Commit 4a94a94

Browse files
committed
Use bitwise AND to evaluate nullabity
1 parent 3782064 commit 4a94a94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.OData.Reader/Generator/OpenApiRequestBodyGenerator.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static OpenApiRequestBody CreateRequestBody(this ODataContext context, IE
6969
bool allParamsNullable = true;
7070
foreach (var parameter in action.Parameters.Skip(skip))
7171
{
72-
allParamsNullable = parameter.Type.IsNullable;
72+
allParamsNullable &= parameter.Type.IsNullable;
7373
parametersSchema.Properties.Add(parameter.Name, context.CreateEdmTypeSchema(parameter.Type));
7474
}
7575

0 commit comments

Comments
 (0)