File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/Microsoft.OpenApi/Services Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,10 @@ namespace Microsoft.OpenApi.Services
11
11
/// </summary>
12
12
public class OpenApiReferenceError : OpenApiError
13
13
{
14
- private OpenApiReference _reference ;
14
+ /// <summary>
15
+ /// The reference that caused the error.
16
+ /// </summary>
17
+ public readonly OpenApiReference Reference ;
15
18
/// <summary>
16
19
/// Initializes the <see cref="OpenApiError"/> class using the message and pointer from the given exception.
17
20
/// </summary>
@@ -26,7 +29,7 @@ public OpenApiReferenceError(OpenApiException exception) : base(exception.Pointe
26
29
/// <param name="message"></param>
27
30
public OpenApiReferenceError ( OpenApiReference reference , string message ) : base ( "" , message )
28
31
{
29
- _reference = reference ;
32
+ Reference = reference ;
30
33
}
31
34
}
32
35
}
You can’t perform that action at this time.
0 commit comments