fix :id -> {uuid} subst in discovery doc when generating from rails routes