restish icon indicating copy to clipboard operation
restish copied to clipboard

Confusing behavior for params passed in the query string

Open benweint opened this issue 4 months ago • 0 comments

I have an API spec with a required query string parameter, defined like this:

                    {
                        "name": "my_required_param",
                        "in": "query",
                        "description": "My query string parameter",
                        "required": true,
                        "style": "form",
                        "schema": {
                            "type": "string"
                        }
                    }

Restish generates a --my-required-param CLI flag for this param. If I pass it, as follows:

restish -v my-api my-operation --my-required-param=xyz

... restish generates a request to /path-to-my-operation?my_required_param=my_required_param%3Dxyz, which seems like a strange choice.

Am I doing something wrong in how I'm specifying this argument?

benweint avatar Sep 27 '24 00:09 benweint