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
Copy file name to clipboardExpand all lines: CHANGELOG.md
+12-9
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@ any parts of the framework not mentioned in the documentation should generally b
15
15
* Adjusted error messages to correctly use capital "JSON:API" abbreviation as used in the specification.
16
16
* Avoid error when `parser_context` is `None` while parsing.
17
17
* Raise comprehensible error when reserved field names `meta` and `results` are used.
18
+
* Use `relationships` in the `pointer` when the field is actually a relationship.
18
19
19
20
### Changed
20
21
@@ -43,11 +44,13 @@ any parts of the framework not mentioned in the documentation should generally b
43
44
* Allow `get_serializer_class` to be overwritten when using related urls without defining `serializer_class` fallback
44
45
* Preserve field names when no formatting is configured.
45
46
* Properly support `JSON_API_FORMAT_RELATED_LINKS` setting in related urls. In case you want to use `dasherize` for formatting links make sure that your url pattern matches dashes as well like following example:
This first release is a start at implementing OAS schema generation. To use the generated schema you may
88
92
still need to manually add some schema attributes but can expect future improvements here and as
89
93
upstream DRF's OAS schema generation continues to mature.
90
94
91
95
### Removed
92
96
93
-
94
97
* Removed support for Python 3.5.
95
98
* Removed support for Django 1.11.
96
99
* Removed support for Django 2.1.
@@ -110,7 +113,7 @@ This is the last release supporting Django 1.11, Django 2.1, Django REST framewo
110
113
### Added
111
114
112
115
* Added support for serializing nested serializers as attribute json value introducing setting `JSON_API_SERIALIZE_NESTED_SERIALIZERS_AS_ATTRIBUTE`
113
-
* Note: As keys of nested serializers are not JSON:API spec field names they are not inflected by format field names option.
116
+
* Note: As keys of nested serializers are not JSON:API spec field names they are not inflected by format field names option.
114
117
* Added `rest_framework_json_api.serializer.Serializer` class to support initial JSON:API views without models.
115
118
* Note that serializers derived from this class need to define `resource_name` in their `Meta` class.
116
119
* This fix might be a **BREAKING CHANGE** if you use `rest_framework_json_api.serializers.Serializer` for non JSON:API spec views (usually `APIView`). You need to change those serializers classes to use `rest_framework.serializers.Serializer` instead.
@@ -125,15 +128,14 @@ This is the last release supporting Django 1.11, Django 2.1, Django REST framewo
125
128
### Changed
126
129
127
130
*`SerializerMethodResourceRelatedField` is now consistent with DRF `SerializerMethodField`:
128
-
* Pass `method_name` argument to specify method name. If no value is provided, it defaults to `get_{field_name}`
131
+
* Pass `method_name` argument to specify method name. If no value is provided, it defaults to `get_{field_name}`
129
132
* Allowed repeated filter query parameters.
130
133
131
134
### Deprecated
132
135
133
136
* Deprecate `source` argument of `SerializerMethodResourceRelatedField`, use `method_name` instead
134
137
* Rendering nested serializers as relationships is deprecated. Use `ResourceRelatedField` instead
135
138
136
-
137
139
## [3.1.0] - 2020-02-08
138
140
139
141
### Added
@@ -163,6 +165,7 @@ This release is not backwards compatible. For easy migration best upgrade first
163
165
164
166
* Moved dependency definition for `django-polymorphic` and `django-filter` into extra requires.
165
167
Hence dependencies of each optional module can be installed with pip using
0 commit comments