bauerji / flask-pydantic

flask extension for integration with the awesome pydantic package
MIT License
352 stars 56 forks source link

Does anyone use with class based views? #47

Open zach-withcoherence opened 2 years ago

zach-withcoherence commented 2 years ago

Generally it works fine to add "validate" to the decorators attribute of the class, however when you want to return a list what is the best practice to include response_many=True in the kwargs?

One option is to roll our own decorator using something like functools.partial. Any otehr ideas?