We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5dd7f22 + a951511 commit d1b5fcaCopy full SHA for d1b5fca
src/Microsoft.OpenApi.Readers/ParseNodes/ListNode.cs
@@ -25,8 +25,7 @@ public override List<T> CreateList<T>(Func<MapNode, T> map)
25
{
26
if (_nodeList == null)
27
28
- throw new OpenApiReaderException(
29
- $"Expected list at line {_nodeList.Start.Line} while parsing {typeof(T).Name}", _nodeList);
+ throw new OpenApiReaderException($"Expected list while parsing {typeof(T).Name}");
30
}
31
32
return _nodeList.Select(n => map(new(Context, n as YamlMappingNode)))
0 commit comments