Skip to content

Add delimiter support to req.get_param_as_list() #2538

@vytas7

Description

@vytas7

As we are planning to add OpenAPI spec affordances down the 4.x road, we'll need to make adjustments to our request utility methods.

Add a new delimiter keyword arg to req.get_param_as_list().
If provided (otherwise default None), the supported values should be:

Should we also accept string atoms 'spaceDelimited' and 'pipeDelimited' directly as in the spec?

If provided, the splitting on the delimiter will always occur after percent-decoding, document this. The examples in the spec also illustrate that spaces and pipes are percent-encoded. Compare and contrast this with the request option to pre-split on comma.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issueComment on this issue if you'd like to volunteer to work on this. Thanks!

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions