Closed blowmage closed 5 years ago
I don't think I'm the expert here, but I think the behavior here is definitely incorrect. The name should be "parent/child".
You will also note that I had to call symbolize_keys
on the hash argument passed to #render
, but the return value from #match
was a hash with string keys. I don't understand why they are different. Shouldn't they either both use symbols keys or both use strings keys?
@jbolinger Any updates?
Path templates are being rewritten as part of https://github.com/googleapis/gapic-generator-ruby and this will be addressed in the next major release of this library.
I'm going to close this. The plan is to remove template handling in this gem.
While evaluating the behavior of
Google::Gax::PathTemplate
, I noticed a behavior that surprised me. Consider the following spec that I wrote to try to understand the existing behavior:It fails with the following:
I find this surprising. Can someone verify that the behavior of
Google::Gax::PathTemplate#match
here is correct? If so, why isn't the value returned not matching the constraint given in the template?