Skip to content

Commit ea83688

Browse files
darrelmillerbaywet
andauthored
Update src/Microsoft.OpenApi.Readers/V2/OpenApiPathItemDeserializer.cs
Co-authored-by: Vincent Biret <[email protected]>
1 parent 3dbe5d8 commit ea83688

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi.Readers/V2/OpenApiPathItemDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private static void LoadPathParameters(OpenApiPathItem pathItem, ParseNode node)
8888
if (formParameters != null)
8989
{
9090
var requestBody = CreateFormBody(node.Context, formParameters);
91-
foreach (var opPair in pathItem.Operations)
91+
foreach (var opPair in pathItem.Operations.Where(x => x.Value.RequestBody is null))
9292
{
9393
if (opPair.Value.RequestBody == null)
9494
{

0 commit comments

Comments
 (0)