Skip to content

Commit 0e78c99

Browse files
Fix all functions vs 'all' function. Relates to #758
1 parent 1e2f7e6 commit 0e78c99

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Common/src/Common.OData.ApiExplorer/Conventions/DefaultODataQueryOptionDescriptionProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ private static void AppendAllowedOptions( StringBuilder description, ODataQueryO
284284
}
285285

286286
if ( context.AllowedFunctions != AllowedFunctions.None &&
287-
context.AllowedFunctions != AllowedFunctions.All )
287+
context.AllowedFunctions != AllowedFunctions.AllFunctions )
288288
{
289289
description.Append( Space )
290290
.AppendFormat(

src/Common/test/Common.OData.ApiExplorer.Tests/Conventions/DefaultODataQueryOptionDescriptionProviderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ public static IEnumerable<object[]> FilterDescriptionData
250250
new[] { "category", "price", "quantity" },
251251
AllowedLogicalOperators.All,
252252
AllowedArithmeticOperators.All,
253-
AllowedFunctions.All,
253+
AllFunctions,
254254
"Restricts the set of items returned. The allowed properties are: category, price, quantity.",
255255
};
256256
}

0 commit comments

Comments
 (0)