You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JSON API specification doesn't say anything about meta fields while using sparse fields, but with drf-json-api 2.1.1 implementation we actually have control over meta files presence in response. The thing is - we can't get rid of meta fields totally. Values of meta fields are nulled, and this is a quite impact for the actual information.
Take note that null value is a totally natural and legal value in application logic. Here we receives wrong information. It's a bug for me. drf-json-api must decide to drop limiting meta fields by sparse fields or to remove meta fields totally by sparse fields.
The text was updated successfully, but these errors were encountered:
Hi,
JSON API specification doesn't say anything about meta fields while using sparse fields, but with
drf-json-api
2.1.1 implementation we actually have control over meta files presence in response. The thing is - we can't get rid of meta fields totally. Values of meta fields arenull
ed, and this is a quite impact for the actual information.Let's take example:
Take note that
null
value is a totally natural and legal value in application logic. Here we receives wrong information. It's a bug for me.drf-json-api
must decide to drop limiting meta fields by sparse fields or to remove meta fields totally by sparse fields.The text was updated successfully, but these errors were encountered: