When OpenApiTextReaderReader translates a YamlException to OpenApiError, it sets "#line=" followed by a line number as OpenApiError.Pointer:
|
diagnostic.Errors.Add(new OpenApiError($"#line={ex.Start.Line}", ex.Message)); |
Here though, it instead sets "#char=" followed by a line number as OpenApiError.Pointer:
|
diagnostic.Errors.Add(new OpenApiError($"#char={ex.Start.Line}", ex.Message)); |
Because there is a line number in both cases, I think "#line=" would be more appropriate than "#char=".