Open andrei-samofalov opened 1 year ago
Hi! Noticed that when the result of a query to the database gives an empty value validation raises InvalidIterableOfModelsException. Though it would be better to return just empty list. What do you think about it?
validation
InvalidIterableOfModelsException
https://github.com/bauerji/flask-pydantic/blob/4b9b7c657ed10a28bf84c156b4fcd0e61510ee75/flask_pydantic/core.py#L47
I can fix this in couple of days
Hi! Noticed that when the result of a query to the database gives an empty value
validation
raisesInvalidIterableOfModelsException
. Though it would be better to return just empty list. What do you think about it?https://github.com/bauerji/flask-pydantic/blob/4b9b7c657ed10a28bf84c156b4fcd0e61510ee75/flask_pydantic/core.py#L47
I can fix this in couple of days