Allow filtering against foreign keys by using the resource_uri
Unprocessable entity http code
Return 422 on validation error
Fixed referenced before assigned