Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 518abac

Browse files
authored
Apply suggestions from code review
1 parent 5f06b5a commit 518abac

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

src/Microsoft.OpenApi/Reader/V3/OpenApiDocumentDeserializer.cs

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,29 +21,8 @@ internal static partial class OpenApiV3Deserializer
2121
} /* Version is valid field but we already parsed it */
2222
},
2323
{"info", (o, n, _) => o.Info = LoadInfo(n, o)},
24-
{
25-
"jsonSchemaDialect", (o, n, _) =>
26-
{
27-
var value = n.GetScalarValue();
28-
if (value != null)
29-
{
30-
o.JsonSchemaDialect = new(value, UriKind.Absolute);
31-
}
32-
}
33-
},
34-
{
35-
"$self", (o, n, _) =>
36-
{
37-
var value = n.GetScalarValue();
38-
if (value != null)
39-
{
40-
o.Self = new(value, UriKind.Absolute);
41-
}
42-
}
43-
},
4424
{"servers", (o, n, _) => o.Servers = n.CreateList(LoadServer, o)},
4525
{"paths", (o, n, _) => o.Paths = LoadPaths(n, o)},
46-
{"webhooks", (o, n, _) => o.Webhooks = n.CreateMap(LoadPathItem, o)},
4726
{"components", (o, n, _) => o.Components = LoadComponents(n, o)},
4827
{"tags", (o, n, _) => { if (n.CreateList(LoadTag, o) is {Count:> 0} tags) {o.Tags = new HashSet<OpenApiTag>(tags, OpenApiTagComparer.Instance); } } },
4928
{"externalDocs", (o, n, _) => o.ExternalDocs = LoadExternalDocs(n, o)},

0 commit comments

Comments
 (0)