Open Tonixhymshiti opened 4 years ago
When using self nested schemas with @marshall_with, the result in swagger for that schema appears null.
@marshall_with
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 ] }
{ id: Integer, name: string, friends: [ null ] }
When using self nested schemas with
@marshall_with
, the result in swagger for that schema appears null.For instance:
Results in swagger as
{ id: Integer, name: string, friends: [ null ] }