Skip to content

array of QueryParam problem #320

Closed
@xujif

Description

@xujif

if I wan to parse a query param to string[] . for example:

GET /xxx?p=xx&p=yy

with router:

@Get('/xxx')
fun(@QueryParam('flags') flags: string[]){
}

will be ok, bug When

GET /xxx?p=xx

will cause an error:

Given parameter p is invalid. Value (\"a\") cannot be parsed into JSON.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: awaiting answerAwaiting answer from the author of issue or PR.type: fixIssues describing a broken feature.type: questionQuestions about the usage of the library.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions