Skip to content

Query parameters with "deepObject" and the "explode" keyword #34

@shadowhand

Description

@shadowhand

Given the following parameters schema:

{
    "name": "filter",
    "in": "query",
    "style": "deepObject",
    "explode": false,
    "schema": {
        "type": "object",
        "properties": {
            "status": {
                "type": "array",
                "items": {
                    "type": "string",
                    "enum": ["open", "pending", "needs_attention", "done"]
                }
            }
        }
    }
}

I should would expect a query string filter[status]=open,pending to be parsed as:

[
    'filter' => [
        'status' => [
            'open',
            'pending',
        ]
]

However, it seems that this package does not respect the explode: false configuration and reports that the status parameter is a string.

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