marshmallow-code / marshmallow-code/marshmallow-oneofschema
Support for marshmallow_dataclass?
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 142
- Forks
- 44
- Avg merge
- 7h 7m
- Merged PRs (30d)
- 3
Description
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:
```python
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`?
[1]: https://github.com/lovasoa/marshmallow_dataclass
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Review the reported marshmallow_dataclass.class_schema(Person) example and compare it with this library's existing marshmallow usage. Define the compatibility behavior and acceptance criteria first; the issue names no repository files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100