lejard-h / chopper

Chopper is an http client generator using source_gen and inspired from Retrofit.

Home Page:https://hadrien-lejard.gitbook.io/chopper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failing to pass List<Map<String, dynamic>> as queryparams

Angeloem opened this issue · comments

Steps to Reproduce

Try passing a list of String,dynamic maps to any CRUD method

Expected results:
The uri should be in this form: https://link.domain?param[0].key=value&param[0].key1=value

Actual results:
Is in this form: https://linnk.domain?param=%7key%3A%20value%2C%20key1%3A%20value1

Dart SDK version: 2.19.6 (stable) (Tue Mar 28 13:41:04 2023 +0000) on "macos_x64" ``` ```

Do you have more information on how you are creating these requests? Are you using the useBrackets attribute?

@Angeloem have you tried the suggestion above?

@techouse , I ended up stringifyijg the request to what I want and then passing it to the server and it worked