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 f771692 commit 2f131d9Copy full SHA for 2f131d9
src/Microsoft.OpenApi.Readers/V3/OpenApiV3VersionService.cs
@@ -166,9 +166,7 @@ public T LoadElement<T>(ParseNode node) where T : IOpenApiElement
166
/// <inheritdoc />
167
public string GetReferenceScalarValues(MapNode mapNode, string scalarValue)
168
{
169
- var filteredList = mapNode.Where(x => x.Name != "$ref");
170
-
171
- if (filteredList.Any())
+ if (mapNode.Any(static x => !"$ref".Equals(x.Name, StringComparison.OrdinalIgnoreCase)))
172
173
var valueNode = mapNode.Where(x => x.Name.Equals(scalarValue))
174
.Select(static x => x.Value).OfType<ValueNode>().FirstOrDefault();
0 commit comments