File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed
Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change 332.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
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ maintainers = [
5656name = " litestar"
5757readme = " README.md"
5858requires-python = " >=3.8,<4.0"
59- version = " 2.4.2 "
59+ version = " 2.4.3 "
6060
6161[project .urls ]
6262Blog = " https://blog.litestar.dev"
You can’t perform that action at this time.
0 commit comments