Skip to content

Commit

Permalink
Use bitwise AND to evaluate nullabity
Browse files Browse the repository at this point in the history
  • Loading branch information
irvinesunday committed Oct 2, 2024
1 parent 3782064 commit 4a94a94
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static OpenApiRequestBody CreateRequestBody(this ODataContext context, IE
bool allParamsNullable = true;
foreach (var parameter in action.Parameters.Skip(skip))
{
allParamsNullable = parameter.Type.IsNullable;
allParamsNullable &= parameter.Type.IsNullable;
parametersSchema.Properties.Add(parameter.Name, context.CreateEdmTypeSchema(parameter.Type));
}

Expand Down

0 comments on commit 4a94a94

Please sign in to comment.