marshmallow-code / marshmallow-code/marshmallow-oneofschema

Support for marshmallow_dataclass?

Open
#100 0 comments 5 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.