Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Support delimited list parameters #66
Currently, webargs supports list parameters in query strings using repeated parameters:
Here are a few thoughts about interfaces:
class ArgSchema(Schema): class Meta: list_delimiter = ','
Not sure if I like any of these. What do you think @sloria?
Agreed with everything you said, but the first option strikes me as a little underpowered. In most use cases, all list parameters for a given resource will be encoded in the same way (all repeated parameters, or all delimited parameters), so I still like a higher-level option--what about an argument passed to
By the way, I don't particularly like delimited query parameters, but they seem to be pretty commonly used, and are even recommended by JSON-API, which is why I'd like to add support.