Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for marshmallow_dataclass? #100

Open
mikeholler opened this issue Dec 10, 2019 · 0 comments
Open

Support for marshmallow_dataclass? #100

mikeholler opened this issue Dec 10, 2019 · 0 comments

Comments

@mikeholler
Copy link

mikeholler commented Dec 10, 2019

All of the examples I see for this library are with the traditional marshmallow implementation, but is there a way to use this library with marshmallow-dataclass? [1]
The reduced overhead and use of the preexisting dataclasses.dataclass is very appealing me.

Here's a simple usage example of marshmallow-dataclass in case you're unfamiliar:

from dataclasses import dataclass
from datetime import date

import marshmallow_dataclass


@dataclass
class Person:
    name: str
    birth: date


PersonSchema = marshmallow_dataclass.class_schema(Person)

How might this library work in the context of marshmallow_dataclass?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant