{"action":"created","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/502","labels_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/502/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/502/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/502/events","html_url":"https://github.com/swagger-api/swagger-spec/issues/502","id":114941299,"number":502,"title":"Are regex wildcards supported in path?","user":{"login":"nikhiljindal","id":10199099,"avatar_url":"https://avatars.githubusercontent.com/u/10199099?v=3","gravatar_id":"","url":"https://api.github.com/users/nikhiljindal","html_url":"https://github.com/nikhiljindal","followers_url":"https://api.github.com/users/nikhiljindal/followers","following_url":"https://api.github.com/users/nikhiljindal/following{/other_user}","gists_url":"https://api.github.com/users/nikhiljindal/gists{/gist_id}","starred_url":"https://api.github.com/users/nikhiljindal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikhiljindal/subscriptions","organizations_url":"https://api.github.com/users/nikhiljindal/orgs","repos_url":"https://api.github.com/users/nikhiljindal/repos","events_url":"https://api.github.com/users/nikhiljindal/events{/privacy}","received_events_url":"https://api.github.com/users/nikhiljindal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-04T00:22:42Z","updated_at":"2015-11-04T00:38:36Z","closed_at":null,"body":"Is `/resources/static/{subpath:*}` a valid value for the path?\r\nIf yes, then what should be the name of the path param `subpath` or `subpath:*`\r\n\r\nHere is an example spec:\r\n```\r\n{\r\n  \"swaggerVersion\": \"1.2\",\r\n  \"apiVersion\": \"\",\r\n  \"basePath\": \"http://localhost\",\r\n  \"resourcePath\": \"/resources\",\r\n  \"apis\": [\r\n   {\r\n    \"path\": \"/resources/static/{subpath:*}\",\r\n    \"description\": \"\",\r\n    \"operations\": [\r\n     {\r\n      \"type\": \"void\",\r\n      \"method\": \"GET\",\r\n      \"nickname\": \"staticFromPathParam\",\r\n      \"parameters\": [\r\n       {\r\n        \"type\": \"string\",\r\n        \"paramType\": \"path\",\r\n        \"name\": \"subpath\",\r\n        \"description\": \"subpath of the resource\",\r\n        \"required\": true,\r\n        \"allowMultiple\": false\r\n       }\r\n      ]\r\n     }\r\n    ]\r\n   }\r\n  ],\r\n  \"models\": {}\r\n }\r\n```\r\nwhich fails `swagger-tools validate` with:\r\n```\r\nAPI Declaration (/resources) Errors:\r\n\r\n    #/apis/0/operations/0/parameters/0/name: API path parameter could not be resolved: subpath\r\n    #/apis/0/path: API requires path parameter but it is not defined: subpath:*\r\n\r\n2 errors and 0 warnings\r\n```\r\n\r\ncc @webron @wing328"},"comment":{"url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/comments/153534491","html_url":"https://github.com/swagger-api/swagger-spec/issues/502#issuecomment-153534491","issue_url":"https://api.github.com/repos/swagger-api/swagger-spec/issues/502","id":153534491,"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":"2015-11-04T00:38:36Z","updated_at":"2015-11-04T00:38:36Z","body":"That wasn't what I was referring to by regexing the value. \"/\" is not valid in the value of a path parameter. We don't support that part of RFC 6570. See #291 (and others) for more information."}}