Add 1.15.0 changelog
parent
f692fe7c98
commit
887b53300a
|
|
@ -7,15 +7,13 @@ Changelog
|
||||||
**1.15.0**
|
**1.15.0**
|
||||||
**********
|
**********
|
||||||
|
|
||||||
*Release date: Mar 04, 2019*
|
*Release date: Apr 01, 2019*
|
||||||
|
|
||||||
- **IMPROVED:** updated ``swagger-ui`` to version 3.21.0
|
- **ADDED:** added ``is_list_view`` and ``has_list_response`` extension points to ``SwaggerAutoSchema`` (:issue:`331`)
|
||||||
- **FIXED:** implicit ``ref_name`` collisions will now throw an exception
|
- **IMPROVED:** updated ``swagger-ui`` to version 3.22.0
|
||||||
- **FIXED:** ``RecursiveField`` will now also work as a child of ``ListSerializer`` (:pr:`321`)
|
- **IMPROVED:** updated ``ReDoc`` to version 2.0.0-rc.4
|
||||||
- **FIXED:** fixed ``minLength`` and ``maxLength`` for ``ListSerializer`` and ``ListField``
|
- **FIXED:** ``ListModelMixin`` will now always be treated as a list view (:issue:`306`)
|
||||||
- **FIXED:** the ``items`` property of ``Schema``, ``Parameter`` and ``Items`` objects was renamed to ``items_``; this
|
- **FIXED:** non-primtive values in field ``choices`` will now be handled properly (:issue:`340`)
|
||||||
is a *mildly breaking change* and was needed to fix the collision with the ``items`` method of ``dict`` (:pr:`308`)
|
|
||||||
- **REMOVED:** the ``get_summary`` and ``get_description`` methods have been removed (previously deprecated in 1.12.0)
|
|
||||||
|
|
||||||
**********
|
**********
|
||||||
**1.14.0**
|
**1.14.0**
|
||||||
|
|
|
||||||
|
|
@ -378,7 +378,6 @@ class ViewInspector(BaseInspector):
|
||||||
"""
|
"""
|
||||||
raise NotImplementedError("ViewInspector must implement get_operation()!")
|
raise NotImplementedError("ViewInspector must implement get_operation()!")
|
||||||
|
|
||||||
# methods below provided as default implementations for probing inspectors
|
|
||||||
def is_list_view(self):
|
def is_list_view(self):
|
||||||
"""Determine whether this view is a list or a detail view. The difference between the two is that
|
"""Determine whether this view is a list or a detail view. The difference between the two is that
|
||||||
detail views depend on a pk/id path parameter. Note that a non-detail view does not necessarily imply a list
|
detail views depend on a pk/id path parameter. Note that a non-detail view does not necessarily imply a list
|
||||||
|
|
|
||||||
|
|
@ -227,7 +227,6 @@ def is_list_view(path, method, view):
|
||||||
# a detail action is surely not a list route
|
# a detail action is surely not a list route
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# for GenericAPIView, if it's a list view then it should be a list view
|
|
||||||
if isinstance(view, ListModelMixin):
|
if isinstance(view, ListModelMixin):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
@ -446,7 +445,7 @@ def field_value_to_representation(field, value):
|
||||||
"""Convert a python value related to a field (default, choices, etc.) into its OpenAPI-compatible representation.
|
"""Convert a python value related to a field (default, choices, etc.) into its OpenAPI-compatible representation.
|
||||||
|
|
||||||
:param serializers.Field field: field associated with the value
|
:param serializers.Field field: field associated with the value
|
||||||
:param obj value: value
|
:param object value: value
|
||||||
:return: the converted value
|
:return: the converted value
|
||||||
"""
|
"""
|
||||||
value = field.to_representation(value)
|
value = field.to_representation(value)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue