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 3cae500 commit 7f5d24cCopy full SHA for 7f5d24c
src/Microsoft.OpenApi/Validations/Rules/RuleHelpers.cs
@@ -49,16 +49,14 @@ public static void ValidateDataTypeMismatch(
49
{
50
if (schema is not null)
51
52
- if (context.HostDocument != null)
53
- {
54
- var visitor = new JsonSchemaReferenceResolver(context.HostDocument);
55
- var walker = new OpenApiWalker(visitor);
56
- schema = walker.Walk(schema);
57
- }
58
-
59
var options = new EvaluationOptions();
60
options.OutputFormat = OutputFormat.List;
61
+ if (context.HostDocument != null)
+ {
+ options.SchemaRegistry.Register(context.HostDocument.BaseUri, context.HostDocument);
+ }
+
62
var results = schema.Evaluate(value, options);
63
64
if (!results.IsValid)
0 commit comments