I have a marshmallow schema validation like this:
class MyFilterSchema(Schema):
ids = fields.List(fields.Str(validate=non_empty), required=True)
Then in my endpoint I call the schema validation: MyFilterSchema().load(flask.request.args)
Now I try to call the HTTP GET endpoint which is using this validation. But I get 'ids': ['Not a valid list.']
I tried different ways:
/myendpoint?ids=1,2,3
/myendpoint?ids=1&ids=2
/myendpoint?ids=[1,2]
but no luck. How must the endpoint be called that marshmallow recognizes my GET parameter as list?