marshmallow-code / marshmallow-code/marshmallow
Allow_none in additional parameters
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.2k
- Forks
- 738
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 7
Description
Hi!
Is it possible that additional attributes have null value? If so how to set it?
Here is an example of a code:
```
class Test(Schema):
class Meta:
include = {
"tester:test": fields.Str(),
}
additional = ["test:one","test:two","test:three"]
ordered = True
```
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
No file or test is named. Start by reading the Schema.Meta options shown in the example, especially include and additional, then inspect how fields.Str handles null values. Done should mean the supported way to allow null additional attributes is established, with behavior confirmed by an appropriate test or documentation update.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend-api-design
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100