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

express adds 'query parser' to 'simple' #359

Open
IshinoJun opened this issue May 5, 2022 · 0 comments · May be fixed by #360
Open

express adds 'query parser' to 'simple' #359

IshinoJun opened this issue May 5, 2022 · 0 comments · May be fixed by #360
Labels
priority/1 planning to do next

Comments

@IshinoJun
Copy link
Collaborator

IshinoJun commented May 5, 2022

Ref.#355
Ref.aspida/aspida#752

Description

express はデフォルトで下記 の key から [] を取り外して queryを生成してしまいます

?ids[]=1&ids[]=2

aspidaは取り外しされることは期待していないので、query parsersimpleに設定します
https://expressjs.com/en/api.html#app.settings.table

Expected

{ ids: [ '1', '2' ] }

Actual

{ ids[]: [ '1', '2' ] }
@IshinoJun IshinoJun linked a pull request May 5, 2022 that will close this issue
4 tasks
@IshinoJun IshinoJun changed the title express adds 'query parser' to 'single' express adds 'query parser' to 'simple' May 5, 2022
@LumaKernel LumaKernel added the priority/1 planning to do next label May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority/1 planning to do next
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants