In my case I had a path param not called id, I guess we could inspect the path to see if it contains {param}