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
1111 /// </summary>
1212 public class OpenApiReferenceError : OpenApiError
1313 {
14- private OpenApiReference _reference ;
14+ /// <summary>
15+ /// The reference that caused the error.
16+ /// </summary>
17+ public readonly OpenApiReference Reference ;
1518 /// <summary>
1619 /// Initializes the <see cref="OpenApiError"/> class using the message and pointer from the given exception.
1720 /// </summary>
@@ -26,7 +29,7 @@ public OpenApiReferenceError(OpenApiException exception) : base(exception.Pointe
2629 /// <param name="message"></param>
2730 public OpenApiReferenceError ( OpenApiReference reference , string message ) : base ( "" , message )
2831 {
29- _reference = reference ;
32+ Reference = reference ;
3033 }
3134 }
3235}
You can’t perform that action at this time.
0 commit comments