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.
1 parent 7af0f5f commit a951511Copy full SHA for a951511
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