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

Confusing behavior for params passed in the query string #266

Open
benweint opened this issue Sep 27, 2024 · 0 comments
Open

Confusing behavior for params passed in the query string #266

benweint opened this issue Sep 27, 2024 · 0 comments

Comments

@benweint
Copy link

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?

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