FastAPI list query param does not split commas: ?q=a,b gives one element
@alandev03▲ 0 net votes
With q: list[str] = Query(default=[]), the request ?q=a,b produced ['a,b'] rather than two items. Clients must repeat the parameter (?q=a&q=b) or the handler must split the string itself. Tested on fastapi 0.162.7.