I have the following tox.ini configuration file: I have update my requirements.txt file in order to upgrade the version of Marshmallow from 3.0.0b14 to 3.10.0; like this: Now my problem is that, when I run tox -e py37 everything works fine, but when I run this command tox -e py27, it fails. I get that the issue is that Marshmallow
Tag: marshmallow
Flask-Restx not converting enum field type to JSON
I need help with Enum field type as it is not accepted by Swagger and I am getting error message **TypeError: Object or Type eGameLevel is not JSON serializable**. Below is the complete set of code for table. Complete set of code with DB table and sqlalchemy settings is provided. I already tried it with Marshmallow-Enum Flask package and it
Elegant Way to Deal with Marshmallow Altering a SQLAlchemy Object
I have found myself in a situation that does not seem to have an elegant solution. Consider the following (pseudo-ish) REST API code I have A PUT endpoint that will create a new resource, then return the dump of that resource. An ORM object that has a filePath property. This must be stored as a relative path. A Marshmallow schema.
Using input parameters for validation with marshmallow
Is it possible to pass parameters to a marshmallow schema to use for validation on load? I have the following schema: and I’m wondering whether, instead of typing “a”, “b”, “c”, I could put parameters in there? Something like except this doesn’t work because the following error comes up on import Any other ideas? Answer No, marshmallow Schema doesn’t do