We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d758803 commit 84e7680Copy full SHA for 84e7680
test/Microsoft.OpenApi.Tests/MicrosoftExtensions/OpenApiReservedParameterExtensionTests.cs
@@ -17,6 +17,19 @@ public void Parses()
17
Assert.NotNull(value);
18
Assert.True(value.IsReserved);
19
}
20
+
21
+ [Fact]
22
+ public void DoesNotThrowExceptionIfValueIsNull()
23
+ {
24
+ var oaiValue = new OpenApiObject
25
26
+ ["foo"] = new OpenApiString("foo")
27
+ };
28
29
+ var value = OpenApiReservedParameterExtension.Parse(oaiValue);
30
+ Assert.Null(value);
31
+ }
32
33
[Fact]
34
public void Serializes()
35
{
0 commit comments