File tree Expand file tree Collapse file tree 2 files changed +31
-1
lines changed
Expand file tree Collapse file tree 2 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 1+ ## ` 0.6.0 ` (2021-12-20)
2+
3+ * feat: Add @serde decorator ([ 523dc9c] ( https://github.com/yukinarit/pyserde/commit/523dc9c ) )
4+ * feat: Add serde field function ([ 488bf00] ( https://github.com/yukinarit/pyserde/commit/488bf00 ) )
5+ * feat: Add serde_skip_default field attribute ([ 0f0b212] ( https://github.com/yukinarit/pyserde/commit/0f0b212 ) )
6+ * feat: Automatically put dataclass decorator ([ 2f0cf01] ( https://github.com/yukinarit/pyserde/commit/2f0cf01 ) )
7+
8+ With ` serde ` decorator and ` field ` function, you can declare pyserde class more easily.
9+
10+ ``` python
11+ from serde import serde, field
12+
13+ @serde
14+ class Foo :
15+ a : List[str ] = field(default_factory = list , skip_if_false = True )
16+ ```
17+
18+ The declaration until v0.5.3 still works.
19+
20+ ``` python
21+ from dataclasses import dataclass
22+ from serde import serialize, deserialize
23+
24+ @deserialize
25+ @serialize
26+ @dataclass
27+ class Foo :
28+ a : List[str ] = field(default_factory = list , metadata = {' serde_skip_if_false' : True })
29+ ```
30+
131## ` 0.5.3 ` (2021-11-24)
232
333* feat: Add more dataclass Field's attrs to Field ([ 7b57c53] ( https://github.com/yukinarit/pyserde/commit/7b57c53 ) )
Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " pyserde"
3- version = " 0.5.3 "
3+ version = " 0.6.0 "
44description = " Yet another serialization library on top of dataclasses"
55authors = [
" yukinarit <[email protected] >" ]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments