{"action":"created","issue":{"url":"https://api.github.com/repos/nicolaiarocci/eve-swagger/issues/2","labels_url":"https://api.github.com/repos/nicolaiarocci/eve-swagger/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/nicolaiarocci/eve-swagger/issues/2/comments","events_url":"https://api.github.com/repos/nicolaiarocci/eve-swagger/issues/2/events","html_url":"https://github.com/nicolaiarocci/eve-swagger/issues/2","id":117158105,"number":2,"title":"Problem with path params using subresources","user":{"login":"cyppan","id":1446201,"avatar_url":"https://avatars.githubusercontent.com/u/1446201?v=3","gravatar_id":"","url":"https://api.github.com/users/cyppan","html_url":"https://github.com/cyppan","followers_url":"https://api.github.com/users/cyppan/followers","following_url":"https://api.github.com/users/cyppan/following{/other_user}","gists_url":"https://api.github.com/users/cyppan/gists{/gist_id}","starred_url":"https://api.github.com/users/cyppan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyppan/subscriptions","organizations_url":"https://api.github.com/users/cyppan/orgs","repos_url":"https://api.github.com/users/cyppan/repos","events_url":"https://api.github.com/users/cyppan/events{/privacy}","received_events_url":"https://api.github.com/users/cyppan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-16T16:05:52Z","updated_at":"2015-12-13T17:55:14Z","closed_at":null,"body":"When using sub-resources (http://python-eve.org/features.html#sub-resources) you probably have this kind of url: `'people/<regex(\"[a-f0-9]{24}\"):contact_id>/invoices'`\r\nThis syntax \"conflicts\" with the Swagger path params which are defined using brackets `{`. Then it considers that `24` is a path params, but not `contact_id`.\r\nI'm not sure what would be the right approach for this problem, maybe rewrite urls to have something like `people/{contact_id}/invoices` and a swagger path definition like\r\n```\r\n{\r\n  \"name\": \"contact_id\",\r\n  \"in\": \"path\",\r\n  \"description\": \"regex(\"[a-f0-9]{24}\")\",\r\n  \"required\": true,\r\n  \"type\": \"string\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/nicolaiarocci/eve-swagger/issues/comments/164282526","html_url":"https://github.com/nicolaiarocci/eve-swagger/issues/2#issuecomment-164282526","issue_url":"https://api.github.com/repos/nicolaiarocci/eve-swagger/issues/2","id":164282526,"user":{"login":"nicolaiarocci","id":512968,"avatar_url":"https://avatars.githubusercontent.com/u/512968?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolaiarocci","html_url":"https://github.com/nicolaiarocci","followers_url":"https://api.github.com/users/nicolaiarocci/followers","following_url":"https://api.github.com/users/nicolaiarocci/following{/other_user}","gists_url":"https://api.github.com/users/nicolaiarocci/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolaiarocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolaiarocci/subscriptions","organizations_url":"https://api.github.com/users/nicolaiarocci/orgs","repos_url":"https://api.github.com/users/nicolaiarocci/repos","events_url":"https://api.github.com/users/nicolaiarocci/events{/privacy}","received_events_url":"https://api.github.com/users/nicolaiarocci/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T17:55:14Z","updated_at":"2015-12-13T17:55:14Z","body":"Yes sounds like a good plan."}}