OpenAPITools / OpenAPITools/openapi-generator

Path Parameters fails if there is an space in the request.

Open
#8,446 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Hello! I want to report a bug with my swagger version: api version: v2.

When I made a request with an API with path parameters and in the path parameter is an space at the end I receive the following error:

image

If I remove the space the API works as expected, so the problem is with the spaces.

I read this old bug issue about the "Path parameters are not url encoded" https://github.com/swagger-api/swagger-ui/issues/4025, That it's already solved, maybe in a new swagger version.

So, I want to know if I update my swagger version this Issue will be solve? Or is it still a bug?

Thanks for your help.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, generated language, or reproducible API specification is named. Start by reproducing the request with a trailing space in a path parameter and compare the generated client's behavior across Swagger/OpenAPI versions. Done means the path parameter is handled correctly and the request succeeds without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.