change the operation id
This commit is contained in:
parent
5ee915e655
commit
fa565d9338
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -103,17 +103,27 @@ namespace Microsoft.OpenApi.OData.Operation
|
|||
NavigationSource.Name
|
||||
};
|
||||
|
||||
var lastpath = Path.Segments.Last(c => c is ODataNavigationPropertySegment);
|
||||
foreach (var segment in Path.Segments.Skip(1))
|
||||
{
|
||||
if (segment is ODataNavigationPropertySegment)
|
||||
{
|
||||
ODataNavigationPropertySegment npSegment = (ODataNavigationPropertySegment)segment;
|
||||
ODataNavigationPropertySegment npSegment = (ODataNavigationPropertySegment)segment;/*
|
||||
if (npSegment.NavigationProperty == NavigationProperty)
|
||||
{
|
||||
items.Add(prefix + Utils.UpperFirstChar(NavigationProperty.ToEntityType().Name));
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
items.Add(segment.Name);
|
||||
}*/
|
||||
if (segment == lastpath)
|
||||
{
|
||||
items.Add(prefix + Utils.UpperFirstChar(segment.Name));
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
items.Add(segment.Name);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue