Skip to content

Commit a440304

Browse files
committed
Merged branch develop into master
2 parents d24b0ee + ab9331a commit a440304

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/JsonApiDotNetCore/Internal/Query/QuerySet.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public QuerySet(
1616
IQueryCollection query)
1717
{
1818
_jsonApiContext = jsonApiContext;
19+
PageQuery = new PageQuery();
1920
BuildQuerySet(query);
2021
}
2122

@@ -55,7 +56,7 @@ private void BuildQuerySet(IQueryCollection query)
5556
private FilterQuery ParseFilterQuery(string key, string value)
5657
{
5758
// expected input = filter[id]=1
58-
var propertyName = key.Split('[', ']')[1];
59+
var propertyName = key.Split('[', ']')[1].ToProperCase();
5960
var attribute = GetAttribute(propertyName);
6061

6162
if (attribute == null)
@@ -94,7 +95,7 @@ private List<SortQuery> ParseSortParameters(string value)
9495
p = p.Substring(1);
9596
}
9697

97-
var attribute = GetAttribute(p);
98+
var attribute = GetAttribute(p.ToProperCase());
9899

99100
sortParameters.Add(new SortQuery(direction, attribute));
100101
});

0 commit comments

Comments
 (0)