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 2b21a91 commit 45edb76Copy full SHA for 45edb76
src/Microsoft.OpenApi.Readers/V31/JsonSchemaDeserializer.cs
@@ -22,8 +22,7 @@ public static JsonSchema LoadSchema(ParseNode node)
22
var builder = new JsonSchemaBuilder();
23
24
// check for a $ref and if present, add it to the builder as a Ref keyword
25
- var pointer = mapNode.GetReferencePointer();
26
- if (pointer != null)
+ if (mapNode.GetReferencePointer() is {} pointer)
27
{
28
builder = builder.Ref(pointer);
29
0 commit comments