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 0c7eb91 commit 7cb1058Copy full SHA for 7cb1058
src/Microsoft.OpenApi.OData.Reader/Common/Utils.cs
@@ -125,7 +125,7 @@ internal static string ToFirstCharacterLowerCase(this string input)
125
internal static string NavigationPropertyPath(this ODataPath path, string navigationPropertyName = null)
126
{
127
string value = string.Join("/",
128
- path.Segments.Where(s => s is ODataNavigationPropertySegment).Select(e => e.Identifier));
+ path.Segments.OfType<ODataNavigationPropertySegment>().Select(e => e.Identifier));
129
return navigationPropertyName == null ? value : $"{value}/{navigationPropertyName}";
130
}
131
0 commit comments