marshmallow_dataclass icon indicating copy to clipboard operation
marshmallow_dataclass copied to clipboard

Automatic generation of marshmallow schemas from dataclasses.

Results 80 marshmallow_dataclass issues
Sort by recently updated
recently updated
newest added

Since 8.5.6+, an attempt to call `class_schema` on a class that cannot be converted by `marschmallow_dataclass` throws `AttributeError`. Previously it was a `TypeError` which is somehow meaningful because the type...

bug

The latest release is raising the above error on invocation of `class_schema`. I'm working on putting together a minimal example to demonstrate this but in the meantime it's breaking CI...

PR #189 introduced a regression where inheritance between dataclasses w/ explicit `ClassVar[Type[Schema]]`'s in parents is broken. The WAR from the PR was to drop it off of parents, but it'd...

I was wondering whether there was merit in adding more documentation regarding the `Union` type, specifically related to the order of types is relevant—this is somewhat counter intuitive as the...

I was using the normal dataclass before and type checking worked fine inside PyCharm for that but that doesn't seem to be the case when I use the @marshmallow_dataclass.dataclass annotation...

Using 8.5.3 ``` from dataclasses import dataclass from typing import Dict from marshmallow_dataclass import class_schema @dataclass class Test: id: int name: str env: Dict test_schema = class_schema(Test) ``` This results...

Hi! Looks like a great lib! Do you have any plans to support marshmallow-oneofschema? see issue: https://github.com/marshmallow-code/marshmallow-oneofschema/issues/100

enhancement
discussion

I made the following usage mistake: I used another json library (orjson) to convert to and from JSON, thinking I could get away with only using marshmallow for deserialization. orjson...

When using marshmallow version 3.10.0 this warning appears: ``` RemovedInMarshmallow4Warning: Passing field metadata as a keyword arg is deprecated. Use the explicit `metadata=...` argument instead. ``` Here is the commit...

Apologies is this is a dumb question, but I'm a bit confused about what field types are allowed or how to support them. For example, using just marshmallow I can...