Closed vakhet closed 3 years ago
fixed in release 1.8.1
use:
from pydantic import default_factory
class SimpleView(PydanticView):
async def get(self, foo: List[str] = Field(default_factory=list):
...
https://pydantic-docs.helpmanual.io/usage/models/#field-with-dynamic-default-value
Hello!
Encountered bug in PydanticView.
Considering this simple view with single query parameter:
Request with more than one query parameter
foo
raises a TypeErrorGET /path_to_simple_view?foo=123&foo=456