{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-js/issues/697","labels_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/697/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/697/events","html_url":"https://github.com/swagger-api/swagger-js/issues/697","id":127396163,"number":697,"title":"How to convert the character \"/\" in the username , such as \"/user/{user}\".","user":{"login":"LouisZou","id":16495203,"avatar_url":"https://avatars.githubusercontent.com/u/16495203?v=3","gravatar_id":"","url":"https://api.github.com/users/LouisZou","html_url":"https://github.com/LouisZou","followers_url":"https://api.github.com/users/LouisZou/followers","following_url":"https://api.github.com/users/LouisZou/following{/other_user}","gists_url":"https://api.github.com/users/LouisZou/gists{/gist_id}","starred_url":"https://api.github.com/users/LouisZou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LouisZou/subscriptions","organizations_url":"https://api.github.com/users/LouisZou/orgs","repos_url":"https://api.github.com/users/LouisZou/repos","events_url":"https://api.github.com/users/LouisZou/events{/privacy}","received_events_url":"https://api.github.com/users/LouisZou/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-19T08:59:58Z","updated_at":"2016-01-20T01:21:15Z","closed_at":"2016-01-19T12:41:00Z","body":"If there is \"/\" in my user name ,such as \"/a/b/\"when I execute the get method using swagger-ui.js.\r\nit will expand it to \"https://apiserver/user/%2Fa%2Fb%2F\",\r\nthis request will failed because my real usl should be \"https://apiserver/user/a/b/\".\r\n\r\nhow to set the converting in swagger-ui.js to get the correct path?\r\n\r\nthe path of swagger definition is like : \r\n\"/user{user}/\": {\r\n\r\nthe username is like : \r\n\"/a/b\"\r\n\r\nthe real url for restful host is like:\r\nhttps://apihost/user/a/b/\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-js/issues/comments/173047982","html_url":"https://github.com/swagger-api/swagger-js/issues/697#issuecomment-173047982","issue_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/697","id":173047982,"user":{"login":"LouisZou","id":16495203,"avatar_url":"https://avatars.githubusercontent.com/u/16495203?v=3","gravatar_id":"","url":"https://api.github.com/users/LouisZou","html_url":"https://github.com/LouisZou","followers_url":"https://api.github.com/users/LouisZou/followers","following_url":"https://api.github.com/users/LouisZou/following{/other_user}","gists_url":"https://api.github.com/users/LouisZou/gists{/gist_id}","starred_url":"https://api.github.com/users/LouisZou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LouisZou/subscriptions","organizations_url":"https://api.github.com/users/LouisZou/orgs","repos_url":"https://api.github.com/users/LouisZou/repos","events_url":"https://api.github.com/users/LouisZou/events{/privacy}","received_events_url":"https://api.github.com/users/LouisZou/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T01:21:15Z","updated_at":"2016-01-20T01:21:15Z","body":"Thanks fehguy.\r\nI found a simple method to resolve it temporarily like the following:\r\nOperation.prototype.encodePathParam = function (pathParam) {\r\n  //return encodeURIComponent(pathParam);\r\n  return pathParam.toString().split('/').map(encodeURIComponent).join('/');\r\n};\r\n\r\n"}}