-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
Description
When .a path / method includes a path parameter, the generated Go client accepts the value and injects it into the path unchanged. If the value contains URL-significant characters, like a '/', this will cause unexpected behavior.
openapi-generator version
4.1.0-SNAPSHOT
OpenAPI declaration file content or url
/filters/{filters_identifier}:
delete:
description: Remove a filter from the system.
parameters:
- in: path
name: filters_identifier
required: true
schema:
type: stringCommand line used for generation
docker run --name oas --rm -v ${PWD}:/local openapi-generator generated -g go-experimental ...
Steps to reproduce
Call the path above with parameter filters_identifier = "foo/bar"
Suggest a fix
Always urlencode path parameters
Reactions are currently unavailable