Skip to content

Commit e76edb1

Browse files
Fix all functions vs 'all' function. Fixes #758
1 parent 744d122 commit e76edb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Common.OData.ApiExplorer/AspNet.OData/Builder/DefaultODataQueryOptionDescriptionProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static void AppendAllowedOptions( StringBuilder description, ODataQueryOptionDes
242242
}
243243

244244
if ( context.AllowedFunctions != AllowedFunctions.None &&
245-
context.AllowedFunctions != AllowedFunctions.All )
245+
context.AllowedFunctions != AllowedFunctions.AllFunctions )
246246
{
247247
#pragma warning disable CA1308 // Normalize strings to uppercase
248248
var functions = context.AllowedFunctions.ToString().ToLowerInvariant();

test/Microsoft.AspNet.OData.Versioning.ApiExplorer.Tests/AspNet.OData/Builder/DefaultODataQueryOptionDescriptionProviderTest.cs

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

0 commit comments

Comments
 (0)