{"action":"created","issue":{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/291","repository_url":"https://api.github.com/repos/OAI/OpenAPI-Specification","labels_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/291/labels{/name}","comments_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/291/comments","events_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/291/events","html_url":"https://github.com/OAI/OpenAPI-Specification/issues/291","id":59568231,"number":291,"title":"Path templating, multiple segments, and RFC 6570?","user":{"login":"christav","id":1987321,"avatar_url":"https://avatars.githubusercontent.com/u/1987321?v=3","gravatar_id":"","url":"https://api.github.com/users/christav","html_url":"https://github.com/christav","followers_url":"https://api.github.com/users/christav/followers","following_url":"https://api.github.com/users/christav/following{/other_user}","gists_url":"https://api.github.com/users/christav/gists{/gist_id}","starred_url":"https://api.github.com/users/christav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christav/subscriptions","organizations_url":"https://api.github.com/users/christav/orgs","repos_url":"https://api.github.com/users/christav/repos","events_url":"https://api.github.com/users/christav/events{/privacy}","received_events_url":"https://api.github.com/users/christav/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/labels/OpenAPI.Next%20Proposal","name":"OpenAPI.Next Proposal","color":"207de5"},{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/labels/Sub%20Issue","name":"Sub Issue","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-03-02T23:18:33Z","updated_at":"2016-02-22T00:25:02Z","closed_at":null,"body":"I'm trying to write swagger docs for APIs like dropbox where the number of path segments isn't known ahead of time. For example, the path template will look something like:\r\n\r\n    /api/metadata/{filePath}\r\n\r\nAnd the following urls should all match this path:\r\n\r\n    /api/metadata/file1.txt\r\n    /api/metadata/dir1/file2.txt\r\n    /api/metadata/dir1/dir2/file3.txt\r\n\r\nIf we were using [RFC 6570](https://tools.ietf.org/html/rfc6570), I'd represent this as:\r\n\r\n    /api/metadata/{/filePath*}\r\n\r\nbut the swagger v2 spec doesn't say if this syntax is acceptable or not.\r\n\r\nIf it is acceptable/correct, could you please let me know in this item? If it's not, what is the expected way to model APIs like this with runtime variable URI paths?\r\n"},"comment":{"url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/comments/186950254","html_url":"https://github.com/OAI/OpenAPI-Specification/issues/291#issuecomment-186950254","issue_url":"https://api.github.com/repos/OAI/OpenAPI-Specification/issues/291","id":186950254,"user":{"login":"webron","id":241629,"avatar_url":"https://avatars.githubusercontent.com/u/241629?v=3","gravatar_id":"","url":"https://api.github.com/users/webron","html_url":"https://github.com/webron","followers_url":"https://api.github.com/users/webron/followers","following_url":"https://api.github.com/users/webron/following{/other_user}","gists_url":"https://api.github.com/users/webron/gists{/gist_id}","starred_url":"https://api.github.com/users/webron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webron/subscriptions","organizations_url":"https://api.github.com/users/webron/orgs","repos_url":"https://api.github.com/users/webron/repos","events_url":"https://api.github.com/users/webron/events{/privacy}","received_events_url":"https://api.github.com/users/webron/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T00:25:02Z","updated_at":"2016-02-22T00:25:02Z","body":"Parent: #574 "}}