File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/JsonApiDotNetCore/Internal/Query
test/JsonApiDotNetCoreExampleTests/Acceptance/Spec/DocumentTests Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -147,6 +147,9 @@ private List<SortQuery> ParseSortParameters(string value)
147
147
148
148
private List < string > ParseIncludedRelationships ( string value )
149
149
{
150
+ if ( value . Contains ( "." ) )
151
+ throw new JsonApiException ( "400" , "Deeply nested relationships are not supported" ) ;
152
+
150
153
return value
151
154
. Split ( ',' )
152
155
. Select ( s => s . ToProperCase ( ) )
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ public async Task Request_ToIncludeUnknownRelationship_Returns_400()
234
234
}
235
235
236
236
[ Fact ]
237
- public async Task Request_ToIncludeRelationshipPath_Returns_400 ( )
237
+ public async Task Request_ToIncludeDeeplyNestedRelationships_Returns_400 ( )
238
238
{
239
239
// arrange
240
240
var person = _context . People . First ( ) ;
You can’t perform that action at this time.
0 commit comments