Skip to content

Commit ff38301

Browse files
committed
Implement FindSubschema by fetching the referenced schema from our components registry
1 parent 7f5d24c commit ff38301

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Microsoft.OpenApi/Models/OpenApiDocument.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,8 @@ public static ReadResult Parse(string input,
676676
/// <exception cref="NotImplementedException"></exception>
677677
public JsonSchema FindSubschema(Json.Pointer.JsonPointer pointer, EvaluationOptions options)
678678
{
679-
throw new NotImplementedException();
679+
var locationUri = string.Concat(BaseUri, pointer);
680+
return (JsonSchema)Workspace.ResolveReference<IBaseDocument>(locationUri);
680681
}
681682
}
682683

0 commit comments

Comments
 (0)