marshmallow-code / marshmallow-code/marshmallow

Allow_none in additional parameters

Open
#2,043 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.