{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/falcor-router/issues/125","labels_url":"https://api.github.com/repos/Netflix/falcor-router/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/falcor-router/issues/125/comments","events_url":"https://api.github.com/repos/Netflix/falcor-router/issues/125/events","html_url":"https://github.com/Netflix/falcor-router/issues/125","id":103788828,"number":125,"title":"Route specificity doesn't match my expecations","user":{"login":"tivac","id":49545,"avatar_url":"https://avatars.githubusercontent.com/u/49545?v=3","gravatar_id":"","url":"https://api.github.com/users/tivac","html_url":"https://github.com/tivac","followers_url":"https://api.github.com/users/tivac/followers","following_url":"https://api.github.com/users/tivac/following{/other_user}","gists_url":"https://api.github.com/users/tivac/gists{/gist_id}","starred_url":"https://api.github.com/users/tivac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tivac/subscriptions","organizations_url":"https://api.github.com/users/tivac/orgs","repos_url":"https://api.github.com/users/tivac/repos","events_url":"https://api.github.com/users/tivac/events{/privacy}","received_events_url":"https://api.github.com/users/tivac/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Netflix/falcor-router/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"michaelbpaulson","id":4458174,"avatar_url":"https://avatars.githubusercontent.com/u/4458174?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelbpaulson","html_url":"https://github.com/michaelbpaulson","followers_url":"https://api.github.com/users/michaelbpaulson/followers","following_url":"https://api.github.com/users/michaelbpaulson/following{/other_user}","gists_url":"https://api.github.com/users/michaelbpaulson/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelbpaulson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelbpaulson/subscriptions","organizations_url":"https://api.github.com/users/michaelbpaulson/orgs","repos_url":"https://api.github.com/users/michaelbpaulson/repos","events_url":"https://api.github.com/users/michaelbpaulson/events{/privacy}","received_events_url":"https://api.github.com/users/michaelbpaulson/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-08-28T20:17:22Z","updated_at":"2015-10-02T10:05:56Z","closed_at":null,"body":"(see my [SO question](https://stackoverflow.com/questions/32196675/efficient-way-to-structure-falcor-router-for-deep-paths) for the original issue & recommendation that I file a bug)\r\n\r\nI've been using falcor to experiment and have found a router behavior I didn't expect. My routes look something like the following:\r\n\r\n1. `items[{integers:ids}].name`\r\n2. `items[{integers:ids}][{keys:fields}]`\r\n\r\nNo matter the order I declare the routes in if I make a request to the router for `items.0.name` it'll always be handled by route 2 (the more generic one). It seems like `[{keys}]` should be lower specificity than a specific field, or even multiple fields. Are the specificity rules laid out somewhere in the docs? I couldn't find them.\r\n\r\nCurrently I'm getting around this by structuring my routes like this:\r\n\r\n- `items[{integers:ids}].name`\r\n- `items[{integers:ids}]['fooga', 'wooga', 'booga', 'tooga', ... ]`\r\n\r\nWhich is super-brittle if new fields become available and also really ugly to write. It also can't be aliased so instead of the really nice `pathSet.fields` I have to iterate on `pathSet[2]` which makes for less obvious code."},"comment":{"url":"https://api.github.com/repos/Netflix/falcor-router/issues/comments/144980807","html_url":"https://github.com/Netflix/falcor-router/issues/125#issuecomment-144980807","issue_url":"https://api.github.com/repos/Netflix/falcor-router/issues/125","id":144980807,"user":{"login":"kubrickology","id":5509162,"avatar_url":"https://avatars.githubusercontent.com/u/5509162?v=3","gravatar_id":"","url":"https://api.github.com/users/kubrickology","html_url":"https://github.com/kubrickology","followers_url":"https://api.github.com/users/kubrickology/followers","following_url":"https://api.github.com/users/kubrickology/following{/other_user}","gists_url":"https://api.github.com/users/kubrickology/gists{/gist_id}","starred_url":"https://api.github.com/users/kubrickology/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubrickology/subscriptions","organizations_url":"https://api.github.com/users/kubrickology/orgs","repos_url":"https://api.github.com/users/kubrickology/repos","events_url":"https://api.github.com/users/kubrickology/events{/privacy}","received_events_url":"https://api.github.com/users/kubrickology/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T10:05:56Z","updated_at":"2015-10-02T10:05:56Z","body":"I'm having the same issue, any updates here?"}}