Skip to content

Commit 3bf701c

Browse files
committed
v2.4.3
Signed-off-by: Janek Nouvertné <25355197+provinzkraut@users.noreply.github.com>
1 parent ed7dca0 commit 3bf701c

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

docs/release-notes/changelog.rst

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,43 @@
33
2.x Changelog
44
=============
55

6+
.. changelog:: 2.4.3
7+
:date: 2023/12/07
8+
9+
.. change:: Fix OpenAPI schema for ``Literal | None`` unions
10+
:type: bugfix
11+
:issue: 2812
12+
:pr: 2818
13+
14+
Fix a bug where an incorrect OpenAPI schema was generated generated when any
15+
``Literal | None``-union was present in an annotation.
16+
17+
For example
18+
19+
.. code-block:: python
20+
21+
type: Literal["sink", "source"] | None
22+
23+
would generate
24+
25+
.. code-block:: json
26+
27+
{
28+
"name": "type",
29+
"in": "query",
30+
"schema": {
31+
"type": "string",
32+
"enum": [ "sink", "source", null ]
33+
}
34+
}
35+
36+
.. change:: Fix advanced-alchemy 0.6.0 compatibility issue with ``touch_updated_timestamp``
37+
:type: bugfix
38+
:pr: 2843
39+
40+
Fix an incorrect import for ``touch_updated_timestamp`` of Advanced Alchemy,
41+
introduced in Advanced-Alchemy version 0.6.0.
42+
643
.. changelog:: 2.4.2
744
:date: 2023/12/02
845

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ maintainers = [
5656
name = "litestar"
5757
readme = "README.md"
5858
requires-python = ">=3.8,<4.0"
59-
version = "2.4.2"
59+
version = "2.4.3"
6060

6161
[project.urls]
6262
Blog = "https://blog.litestar.dev"

0 commit comments

Comments
 (0)