Skip to content

Commit 2758496

Browse files
committed
chore: adds defensive programming
Signed-off-by: Vincent Biret <[email protected]>
1 parent a4df88b commit 2758496

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ internal static class OpenApiPathsGenerator
2727
public static OpenApiPaths CreatePaths(this ODataContext context, OpenApiDocument document)
2828
{
2929
Utils.CheckArgumentNull(context, nameof(context));
30+
Utils.CheckArgumentNull(document, nameof(document));
3031

3132
// Due to the power and flexibility of OData a full representation of all service capabilities
3233
// in the Paths Object is typically not feasible, so this mapping only describes the minimum

0 commit comments

Comments
 (0)