flask-pydantic icon indicating copy to clipboard operation
flask-pydantic copied to clipboard

how to use flask getlist mothed

Open fainle opened this issue 2 years ago • 0 comments

if my query string is

http://url?a[]=1&a[]=2&a[]=3

i want the get the a value is a = [1, 2, 3]

can i use the query: useModel realize it ?

class useModel(BaseModel):
    a: List = Field([]) 

is not working

fainle avatar Jul 01 '22 03:07 fainle