{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-js/issues/837","repository_url":"https://api.github.com/repos/swagger-api/swagger-js","labels_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/837/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/837/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/837/events","html_url":"https://github.com/swagger-api/swagger-js/issues/837","id":171980550,"number":837,"title":"JSON references are not url decoded","user":{"login":"jeff9finger","id":12804917,"avatar_url":"https://avatars.githubusercontent.com/u/12804917?v=3","gravatar_id":"","url":"https://api.github.com/users/jeff9finger","html_url":"https://github.com/jeff9finger","followers_url":"https://api.github.com/users/jeff9finger/followers","following_url":"https://api.github.com/users/jeff9finger/following{/other_user}","gists_url":"https://api.github.com/users/jeff9finger/gists{/gist_id}","starred_url":"https://api.github.com/users/jeff9finger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeff9finger/subscriptions","organizations_url":"https://api.github.com/users/jeff9finger/orgs","repos_url":"https://api.github.com/users/jeff9finger/repos","events_url":"https://api.github.com/users/jeff9finger/events{/privacy}","received_events_url":"https://api.github.com/users/jeff9finger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-18T19:25:49Z","updated_at":"2016-09-14T22:31:21Z","closed_at":"2016-09-14T22:31:21Z","body":"It appears that the curly braces in the path json refs may not be compliant with the JSON spec. \r\nswagger-editor decodes encoded refs properly, but swagger-ui does not. Both swagger-editor and swagger-ui allow '{' and '}' chars, so it looks like these tools are not strictly enforcing the requirement (which is OK with me).\r\n\r\nThe issue is that swagger-ui ignores the json reference when it contains encoded characters. \r\n\r\n'''For example:\r\npaths:\r\n  /persons/{username}:\r\n    $ref: 'persons.yaml#/paths/~1persons~1{username}'\r\n```\r\nIs dereferenced correctly. But\r\n```\r\npaths:\r\n  /persons/{username}:\r\n    $ref: 'persons.yaml#/paths/~1persons~1%7Busername%7D'\r\n```\r\n\r\nIs not dereferenced. It seems to be ignored.\r\n\r\nhttps://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03\r\n\r\nThe \"$ref\" string value contains a URI [RFC3986], which identifies\r\nthe location of the JSON value being referenced. It is an error\r\ncondition if the string value does not conform to URI syntax rules.\r\nAny members other than \"$ref\" in a JSON Reference object SHALL be\r\nignored.\r\n\r\nCurly braces aren't valid URI characters, so they have to be encoded.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-js/issues/comments/247177294","html_url":"https://github.com/swagger-api/swagger-js/issues/837#issuecomment-247177294","issue_url":"https://api.github.com/repos/swagger-api/swagger-js/issues/837","id":247177294,"user":{"login":"fehguy","id":249413,"avatar_url":"https://avatars.githubusercontent.com/u/249413?v=3","gravatar_id":"","url":"https://api.github.com/users/fehguy","html_url":"https://github.com/fehguy","followers_url":"https://api.github.com/users/fehguy/followers","following_url":"https://api.github.com/users/fehguy/following{/other_user}","gists_url":"https://api.github.com/users/fehguy/gists{/gist_id}","starred_url":"https://api.github.com/users/fehguy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fehguy/subscriptions","organizations_url":"https://api.github.com/users/fehguy/orgs","repos_url":"https://api.github.com/users/fehguy/repos","events_url":"https://api.github.com/users/fehguy/events{/privacy}","received_events_url":"https://api.github.com/users/fehguy/received_events","type":"User","site_admin":false},"created_at":"2016-09-14T22:31:21Z","updated_at":"2016-09-14T22:31:21Z","body":"Please submit a test case in a PR and we can address this."}}
{"actor":{"display_login":"fehguy"}}