flask-accept
flask-accept copied to clipboard
Flask-REST Marshmallow Two-way Nesting Schemas
TL;DR : Is there a way to accept string Nested marshmallow fields ?
In order to avoid circular import in a flask/marshmallow project, it's possible to reference the Nested field by using its name (as described here https://marshmallow.readthedocs.io/en/latest/nesting.html#two-way-nesting)
Unfortunately, flask_accept doesn't support it :
` File env/lib/python3.8/site-packages/flask_accepts/decorators/decorators.py", line 110, in decorator
body = for_swagger(
File "env/lib/python3.8/site-packages/flask_accepts/utils.py", line 63, in for_swagger
fields = {
File "env/lib/python3.8/site-packages/flask_accepts/utils.py", line 64, in
AttributeError: 'str' object has no attribute 'name' `
Can you please add the possibility to support this configuration ?