OpenAPITools / OpenAPITools/openapi-generator
Path Parameters fails if there is an space in the request.
Nobody has claimed this yet.
- 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:

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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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