[malody] allow unknown keys in input
This commit is contained in:
parent
20c1ce922e
commit
d9b960383c
@ -1,3 +1,8 @@
|
||||
# v1.2.1
|
||||
## Fixed
|
||||
- [malody] Parsing a malody file with keys that are unused for conversion
|
||||
(like `meta.mode_ext` or `extra`) would fire errors, not anymore !
|
||||
|
||||
# v1.2.0
|
||||
## Added
|
||||
- [malody] 🎉 initial malody support !
|
||||
|
@ -3,6 +3,7 @@ from decimal import Decimal
|
||||
from enum import Enum
|
||||
from typing import List, Optional, Tuple, Union
|
||||
|
||||
from marshmallow import EXCLUDE
|
||||
from marshmallow.validate import Range
|
||||
from marshmallow_dataclass import NewType, class_schema
|
||||
|
||||
@ -10,6 +11,7 @@ from marshmallow_dataclass import NewType, class_schema
|
||||
class Ordered:
|
||||
class Meta:
|
||||
ordered = True
|
||||
unknown = EXCLUDE
|
||||
|
||||
|
||||
@dataclass
|
||||
|
Loading…
Reference in New Issue
Block a user