File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
src/JsonApiDotNetCore/QueryParameterServices Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,11 @@ public List<AttrAttribute> Get(RelationshipAttribute relationship = null)
39
39
_selectedRelationshipFields . TryGetValue ( relationship , out var fields ) ;
40
40
return fields ;
41
41
}
42
-
43
42
44
43
/// <inheritdoc/>
45
44
public virtual void Parse ( KeyValuePair < string , StringValues > queryParameter )
46
45
{ // expected: articles?fields=prop1,prop2
47
- // articles?fields[articles]=prop1,prop2
46
+ // articles?fields[articles]=prop1,prop2 <-- this form in invalid UNLESS "articles" is actually a relationship on Article
48
47
// articles?fields[relationship]=prop1,prop2
49
48
var fields = new List < string > { nameof ( Identifiable . Id ) } ;
50
49
fields . AddRange ( ( ( string ) queryParameter . Value ) . Split ( QueryConstants . COMMA ) ) ;
You can’t perform that action at this time.
0 commit comments