Skip to content

Commit 0fb689d

Browse files
committed
Register the OpenApi-based vocabs
1 parent d6593ab commit 0fb689d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Microsoft.OpenApi/Reader/V31/JsonSchemaDeserializer.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// Licensed under the MIT license.
33

44
using System.Text.Json;
5+
using Json.Schema.OpenApi;
56
using Microsoft.OpenApi.Models;
67
using Microsoft.OpenApi.Reader.ParseNodes;
78
using JsonSchema = Json.Schema.JsonSchema;
@@ -16,6 +17,7 @@ internal static partial class OpenApiV31Deserializer
1617
{
1718
public static JsonSchema LoadSchema(ParseNode node, OpenApiDocument hostDocument = null)
1819
{
20+
Vocabularies.Register();
1921
return JsonSerializer.Deserialize<JsonSchema>(node.JsonNode);
2022
}
2123
}

0 commit comments

Comments
 (0)