Closed caffeinatedgaze closed 9 months ago
Hey, can you add the CBV used? I will copy it directly to the unit tests and fix it asap
Sure. I will provide a minimal reproducible example asap. :racehorse:
I tried to reproduce it in a clean environment, and it worked fine. I guess my issues were related to inaccurate usage of Pydantic models and lazy fields. I will re-open if found out anything new.
Describe the bug FastAPI's
default_response_class
parameter is ignored by class-based views. This is important when, for example, trying to override the default JSON encoder.To Reproduce Steps to reproduce the behavior:
If you repeat these steps for an normal function-based view, the log will be printed.
Expected behavior The custom encoder is ignored in class-based views.
Environment: