marshmallow-annotations icon indicating copy to clipboard operation
marshmallow-annotations copied to clipboard

Allows declaring marshmallow schema through type annotations

Results 11 marshmallow-annotations issues
Sort by recently updated
recently updated
newest added

Closes #5 Adding a new parameter to `AbstractConverter` is probably a breaking change :/ -- but can use the upgrade to Marshmallow 3 as an excuse to also bump major...

enhancement

This is fixed on 3.6.5+ but we need to handle it properly - some sort of delayed field instantiation maybe. * would delay only apply to forward references to the...

help wanted

These changes make marshmallow-annotations work with marshmallow 3.1 on my project. Let me know if anything else needs to be tested.

Hei, how could I pickle a class similar to class SchemaMarshmallow(Schema): flag = fields.Bool() choice = fields.Str() or class MySchema(NamedTuple): flag: bool choice: str class SchemaMarshmallow(AnnotationSchema): class Meta: target =...

Need to track changes in names and apis in v3. * SchemaOpts now accepts an ordered arg (I expect this'll be deprecated when 3.5 is eol'd as dictionaries are insertion...

Need to get 3.7 building on my machine first. but this was the original motivation for all the work that's gone into this lib.

help wanted
on hold

ala singledispatch If I have `ClassA` registered with a schema, then I should be able to use `ClassB(ClassA)` in a declaration and this lib will see that while `ClassB` itself...

Relies on metadata keyword documented here: https://docs.python.org/3/library/dataclasses.html#dataclasses.field to work around subtype information not being available from InitVars. It's not pretty, but it's the least bad alternative I saw