muffin-rest 5.1.7__py3-none-any.whl → 5.1.8__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- muffin_rest/peewee/schemas.py +4 -1
- {muffin_rest-5.1.7.dist-info → muffin_rest-5.1.8.dist-info}/METADATA +1 -1
- {muffin_rest-5.1.7.dist-info → muffin_rest-5.1.8.dist-info}/RECORD +5 -5
- {muffin_rest-5.1.7.dist-info → muffin_rest-5.1.8.dist-info}/LICENSE +0 -0
- {muffin_rest-5.1.7.dist-info → muffin_rest-5.1.8.dist-info}/WHEEL +0 -0
muffin_rest/peewee/schemas.py
CHANGED
|
@@ -17,7 +17,10 @@ class EnumField(ma.fields.Field):
|
|
|
17
17
|
if value is None:
|
|
18
18
|
return None
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
try:
|
|
21
|
+
return value.value
|
|
22
|
+
except AttributeError:
|
|
23
|
+
raise ma.ValidationError(f"{obj}: {attr} value is invalid: {value}") from None
|
|
21
24
|
|
|
22
25
|
def _deserialize(self, value, attr, data, **kwargs):
|
|
23
26
|
try:
|
|
@@ -16,7 +16,7 @@ muffin_rest/peewee/filters.py,sha256=qjdzXx0rZOwDGGcVoso1QQL4hrSzUjqEdwdtt8vBhes
|
|
|
16
16
|
muffin_rest/peewee/handler.py,sha256=y7FnayK2lTDMYG2lnrgBEDBUuXd3ZEAd4VXQXuNxWCM,5378
|
|
17
17
|
muffin_rest/peewee/openapi.py,sha256=ZZuh7nJVuK9cTJqtOJ_XASe9iJgter-xIjj9YJ8xszI,1111
|
|
18
18
|
muffin_rest/peewee/options.py,sha256=02E8yOXHaHl0smKV8qI6er7YS3IcuroDPl7GR_YuLjo,1489
|
|
19
|
-
muffin_rest/peewee/schemas.py,sha256=
|
|
19
|
+
muffin_rest/peewee/schemas.py,sha256=6xaNxKFpdXjoiPFI9yc0tBN7B535A2IFLRE9x6unrZM,1215
|
|
20
20
|
muffin_rest/peewee/sorting.py,sha256=mQlHH1u4MY_vzIFwQy-aLHXiDuUWJ_fAn4qs-X6Vodw,1895
|
|
21
21
|
muffin_rest/peewee/types.py,sha256=cgCXhpGHkImKwudA1lulZHz5oJswHH168AiW5MhZRCM,155
|
|
22
22
|
muffin_rest/peewee/utils.py,sha256=wXeneVE1IZl1ROnY28re73H62Y1_tEmoEQYzPhuOyBI,702
|
|
@@ -30,7 +30,7 @@ muffin_rest/sqlalchemy/types.py,sha256=JnIw44XJ2ClWzOv-mTUrvFw1JPxAlvdX_jf7r4zau
|
|
|
30
30
|
muffin_rest/swagger.html,sha256=2uGLu_KpkYf925KnDKHBJmV9pm6OHn5C3BWScESsUS8,1736
|
|
31
31
|
muffin_rest/types.py,sha256=vy55ShzMcvs9zXjFpdjWlagv09dMrcmxb2-U4hTL3NM,521
|
|
32
32
|
muffin_rest/utils.py,sha256=-nf6WCGFlVoOcBT-n6eiIpbZSmPY8ynm2UlMelgmn8o,2059
|
|
33
|
-
muffin_rest-5.1.
|
|
34
|
-
muffin_rest-5.1.
|
|
35
|
-
muffin_rest-5.1.
|
|
36
|
-
muffin_rest-5.1.
|
|
33
|
+
muffin_rest-5.1.8.dist-info/LICENSE,sha256=xHPkOZhjyKBMOwXpWn9IB_BVLjrrMxv2M9slKkHj2hM,1082
|
|
34
|
+
muffin_rest-5.1.8.dist-info/METADATA,sha256=bjqZvSOrDnhx1JAN__YW_KOhJQKSJ34zbdomUDPC8bE,4126
|
|
35
|
+
muffin_rest-5.1.8.dist-info/WHEEL,sha256=Zb28QaM1gQi8f4VCBhsUklF61CTlNYfs9YAZn-TOGFk,88
|
|
36
|
+
muffin_rest-5.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|