New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flask-marshmallow - generating Marshmallow schemas from SQLAlchemy models seemingly breaks flasgger #611
Comments
We have a similar problem with schemas created from direct imports from
Pipfile:
As mentioned in #590, downgrading to
The only schema currently attached to a view is extremely simple: from flasgger import Schema, fields
class InviteUserSchema(Schema):
class Meta:
strict = True
message = fields.Str(required=True)
subject = fields.Str(required=True) In the view extended from definitions = {"InviteUserSchema": InviteUserSchema} |
I have a SQLAlchemy model from which I derive a flask-marshmallow schema:
I then add the Schema to my definitions with
@swag_from
:When I head to
/apidocs
, I am greeted with the following error:Seemingly, the
Meta
object containing options for schema generation causes problems when attempting to include it in the flasgger config.The text was updated successfully, but these errors were encountered: