From d9b960383c7c65421b95986790b36595bb68bc15 Mon Sep 17 00:00:00 2001 From: Stepland <16676308+Stepland@users.noreply.github.com> Date: Fri, 28 May 2021 01:48:10 +0200 Subject: [PATCH] [malody] allow unknown keys in input --- CHANGELOG.md | 5 +++++ jubeatools/formats/malody/schema.py | 2 ++ 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 614d157..4c1aad8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ! diff --git a/jubeatools/formats/malody/schema.py b/jubeatools/formats/malody/schema.py index 8263b6a..3c7c16e 100644 --- a/jubeatools/formats/malody/schema.py +++ b/jubeatools/formats/malody/schema.py @@ -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