Skip to content

Commit 51664e1

Browse files
committed
Release v1.2.0
1 parent 6a3a188 commit 51664e1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

CHANGELOG.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
1.2.0, TBD
2-
----------
1+
1.2.0, 18 November 2022
2+
-----------------------
33
Features & fixes:
44

5-
* Allow all types, including special forms, to be used in ``serializer_field_mapping``.
5+
* Allow all types, including special forms such as unions, to have their field type overridden through the
6+
``serializer_field_mapping`` dictionary.
7+
* Also treat unions containing ``None`` as optional if they consist of three or more members. Previously this was only
8+
the case for unions with two members (i.e. only unions of a type with ``None`` were optional).
9+
* Many added and fixed type hints.
610

711
1.1.1, 25 January 2021
812
----------------------

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "djangorestframework-dataclasses"
7-
version = "1.1.1"
7+
version = "1.2.0"
88
description = "A dataclasses serializer for Django REST Framework"
99
readme = "README.rst"
1010
license = { file = "LICENSE" }

0 commit comments

Comments
 (0)