-
Notifications
You must be signed in to change notification settings - Fork 300
Allow type field on none polymorphic serializers #376
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
299f99a
to
6a1cbe6
Compare
|
6a1cbe6
to
f4aab7f
Compare
Codecov Report
@@ Coverage Diff @@
## develop #376 +/- ##
===========================================
+ Coverage 93.05% 93.07% +0.01%
===========================================
Files 51 52 +1
Lines 2665 2686 +21
===========================================
+ Hits 2480 2500 +20
- Misses 185 186 +1
Continue to review full report at Codecov.
|
@sliverc, thanks for going through all that extra effort for a relatively small change. 👍 |
This support was added in django-json-api#376 but only for non polymorphic fields. However as per specification [0] `type` must not be a field name and therefore must be forbidden in DJA as well. Some dependents might depend on being allowed to have a field name `type` so deprecating it now and remove it in next major version. [0] https://jsonapi.org/format/#document-resource-object-fields
This support was added in django-json-api#376 but only for non polymorphic fields. However as per specification [0] `type` must not be a field name and therefore must be forbidden in DJA as well. Some dependents might depend on being allowed to have a field name `type` so deprecating it now and remove it in next major version. [0] https://jsonapi.org/format/#document-resource-object-fields
This support was added in #376 but only for non polymorphic fields. However as per specification [0] `type` must not be a field name and therefore must be forbidden in DJA as well. Some dependents might depend on being allowed to have a field name `type` so deprecating it now and remove it in next major version. [0] https://jsonapi.org/format/#document-resource-object-fields
Changes in #211 caused serializers with type field to fail, breaking backwards compatibility. This change fixes this by allowing type fields again on none polymorphic serializers.