BUG: Self nested schemas result in null values.
- Dominant language
- Python
- Stars
- 652
- Forks
- 151
- PR merge metrics
- No merged PRs in 30d
Description
When using self nested schemas with `@marshall_with`, the result in swagger for that schema appears null.
For instance:
```
class UserSchema(Schema):
id: fields.Int()
name: fields.String()
friends: fields.Nested(lambda: UserSchema(many=True))
```
Results in swagger as
`
{
id: Integer,
name: string,
friends: [ null ]
}
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the shown UserSchema using @marshall_with and inspect the Swagger schema-generation path for self-nested fields. Compare the generated friends schema with the expected nested UserSchema output; done when it no longer contains null.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100