klen / mixer

Mixer -- Is a fixtures replacement. Supported Django, Flask, SqlAlchemy and custom python objects.
Other
939 stars 96 forks source link

Support enum, dict and raw #140

Closed anis-campos closed 2 years ago

anis-campos commented 2 years ago

With this, we can now have:

Also allow Optional fields with a default being None to still have a generated value.

klen commented 2 years ago

@anis-campos I've added support for fields.Dict and fields.Raw. Please update the PR to make marshmallow-enum an optional dependency.

anis-campos commented 2 years ago

Indeed. Thanks for the dict and raw support. For the Enum, I might need to rethink it all.

I'm actually using marshmallow_dataclass, and there is also the case of the Union Field.

Maybe I should stay away fro the "pure" marshmallow mixer and just go for a new one, dedicated for marshmallow_dataclass ?