Skip to content

Commit a124aa2

Browse files
committed
Make the host document an optional param
1 parent 5cfce6e commit a124aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Reader/V2/OpenApiParameterDeserializer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ public static OpenApiParameter LoadParameter(ParseNode node, OpenApiDocument hos
212212
return LoadParameter(node, false, hostDocument);
213213
}
214214

215-
public static OpenApiParameter LoadParameter(ParseNode node, bool loadRequestBody, OpenApiDocument hostDocument)
215+
public static OpenApiParameter LoadParameter(ParseNode node, bool loadRequestBody, OpenApiDocument hostDocument = null)
216216
{
217217
// Reset the local variables every time this method is called.
218218
node.Context.SetTempStorage(TempStorageKeys.ParameterIsBodyOrFormData, false);

0 commit comments

Comments
 (0)