Closed jvrsantacruz closed 9 years ago
Awesome! Thanks for the fix!
Released as 0.4.3
.
Perfect! It has been so fast I didn't even had to mock the version in my own pipyserver. Thanks you! On 26 May 2015 18:43, "Charles-Axel Dein" notifications@github.com wrote:
Released as 0.4.3.
— Reply to this email directly or view it on GitHub https://github.com/uber/charlatan/pull/48#issuecomment-105597954.
I know what it is to wait for the release to happen, so that's why I released it fast :)
Generalized
charlatan.utils.richgetter
function to resolve object paths includingdict
,object
andlist
.It uses instance type comparision against standard
collection
ABC metaclasses.getitem
getitem
also, but indexes are numerical.As in the tests, the spec
object.values.0
should resolve to'value'
in this context:Note that previous implementation would have resolved
key.values
to thedict.values()
method instead ofdict['values']
which is the correct thing to do.This should fix #47 as it now handles list indexes correctly.
Thanks for such a nice library :)