File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/Microsoft.OpenApi.Readers/Exceptions
test/Microsoft.OpenApi.Readers.Tests Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ public OpenApiReaderException(string message) : base(message) { }
31
31
/// <param name="node">Parsing node where error occured</param>
32
32
public OpenApiReaderException ( string message , YamlNode node ) : base ( message )
33
33
{
34
- Pointer = $ "#char={ node . Start . Index } ,{ node . End . Index } ";
34
+ Pointer = $ "#line={ node . Start . Line } "; // This only includes line because using a char range causes tests to break due to CR/LF & LF differences
35
+ // See https://tools.ietf.org/html/rfc5147 for syntax
35
36
}
36
37
37
38
/// <summary>
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ public void BrokenSimpleList()
29
29
30
30
diagnostic . Errors . ShouldBeEquivalentTo ( new List < OpenApiError > ( ) {
31
31
new OpenApiError ( new OpenApiReaderException ( "Expected a value." ) {
32
- Pointer = "#char=64,64 "
32
+ Pointer = "#line=4 "
33
33
} )
34
34
} ) ;
35
35
}
You can’t perform that action at this time.
0 commit comments