swagger-cli icon indicating copy to clipboard operation
swagger-cli copied to clipboard

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

Open conanguyw opened this issue 4 years ago • 1 comments

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 avatar Feb 10 '22 10:02 conanguyw

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

conanguyw avatar Feb 10 '22 10:02 conanguyw