optional nested fields for foreignkey field
validate parameters before getting objects and allow resource to return dict or list