flask-rest-jsonapi icon indicating copy to clipboard operation
flask-rest-jsonapi copied to clipboard

Sparse fieldsets

Open erich-nuffsaid opened this issue 4 years ago • 0 comments
trafficstars

Fix for https://github.com/miLibris/flask-rest-jsonapi/issues/209

Going to calculate the sparse field before calling the schema constructor rather than calling _init_fields again because they've labelled it explicitly as a private API.

Also, now if both and include and field[primary_type] parameters are passed, the included relationship must be present in the fields parameter because relationships are fields

erich-nuffsaid avatar Sep 28 '21 15:09 erich-nuffsaid