Skip to content

Query parameters do not support nested maps #538

@mfeckie

Description

@mfeckie

When using Plug, we are able to serialize nested maps to query params.

e.g. Plug.Conn.Query.encode(%{filters: %{ name: "dave", direction: "asc", pagination: %{ page: 1} } }) which would give us something like filters[direction]=asc&filters[name]=dave&filters[pagination][page]=1"

Would you be open to a PR which either used Plug's implementation directly or re-implemented the algorithm?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions