Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Record in query functions #1364

Open
ramiroaisen opened this issue Nov 18, 2024 · 0 comments
Open

Support for Record in query functions #1364

ramiroaisen opened this issue Nov 18, 2024 · 0 comments

Comments

@ramiroaisen
Copy link

ramiroaisen commented Nov 18, 2024

Feature Request

This isssue assumes first the implementation of #1363

We are using typia.http.assertQuery in an API we are developing.

In a place we need to accept a custom attributes filter in the form of Record<string, string>

So a query like this:

type Query = {
  attrs: Record<string, string>,
}

could be parsed from a string like this ?attrs[foo]=bar&attrs[baz]=das

And the parsing should correctly resolve to an object like this:

{
  attrs: {
    foo: "bar",
    baz: "das",
  }
}

That shape correctly match the expected format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant