APIDevTools / swagger-cli

Swagger 2.0 and OpenAPI 3.0 command-line tool
https://apitools.dev/swagger-cli
MIT License
515 stars 69 forks source link

Ref incorrect if path contains "{" or "}" #75

Open conanguyw opened 2 years ago

conanguyw commented 2 years ago

Maybe due to “subsequent references are simply modified to point to the single inlined copy of the file”, it occurs the question like this :"$ref": "#/paths/~1workspaces~1%7BworkspaceId%7D~1reservations/get/parameters/0". Because it replace “{“ with “%7B“ and replace “}“ with “%7D“

conanguyw commented 2 years ago

My path is "/workspaces/{workspaceId}/reservations"