Skip to content

Handle multiple parameters with CommaSeparated attribute #2

@derekpuff

Description

@derekpuff

Thank you for this excellent approach to handling the query string. I found that it does not correctly handle a query string with multiple parameters that have comma-separated values.

GET /products?sizes=s,m,l&colors=blue,green

[HttpGet("Products")] public IActionResult Get( [CommaSeparated]IEnumerable<string> sizes, [CommaSeparated]IEnumerable<string> colors, string filterText)

Presumably the fix involves having the various classes (the factory and provider) maintain an enumeration of keys. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions