flask-smorest

How to use a list of arguments with flask_smorest/marshmallow

How to use a list of arguments with flask_smorest/marshmallow Question: I am trying to insert a collection of objects in a flask api. We use marshmallow for deserializing. My endpoint looks like this: @blp.arguments(SomeSchemas, location=’json’, as_kwargs=True) @blp.response(200, SomeSchemas) def post(self, some_schemas: SomeSchemas) -> dict: The schema is a simple schema like this: class SomeSchemas(ma.Schema): schemas …

Total answers: 1