#m1dnight - cli
1 messages ยท Page 1 of 1 (latest)
Hi there! ๐
This is what I see when I just put data : http://pastie.org/p/5AADDbTainS05HQbXbAYkU
So there is data there. I assume that the path expression doesn't work or something.
I have also done a sanity check with the command stripe customers search --query="metadata['auth0id']:'supersecret'" to make sure that the response contains a user.
I also tried enabling debugging with the --log-level debug flag , but that does not output the intermediate values of the fixtures, so that's no help.
Thanks for the details
Just give me a couple of minutes while I analyze your request
In the meanwhile, I've been trying several combinations of data, and I noticed that putting data.[0].[0].[0] or no matter how many times" .[0]", it still returns the entire list in the error I have linked in the above pastie.org link.
Thanks for taking your time, btw. Appreciate it.
I don't know previous_fixture , where did you find this ? I don't see it here
https://stripe.com/docs/cli/fixtures
It was an example. Let me send you the entire fixture, just a second.
The secret value is redacted, but I guess you can see that on your end anyway. Let me know if you need the actual value.
๐ taking over for my colleague. Let me catch up.
Hi! No problem. I'm trying to figure out in the meanwhile too.
I think this is wrong
/v1/customers/${find_the_customer:data.[0.id]|Unknown Person}
it should probably be something like
/v1/customers/${find_the_customer:data:0:id}
oh wait what
let me try to test it out
oh jeez, that actually works
So [n] is to access the nth field in an object, and not a list?
Hrm, no. I was looking at this test case in the source, but I must not be familiar enough with golang: https://github.com/stripe/stripe-cli/blob/90b2b7036a916df631c0b23ba12cf4d8d232aa94/pkg/fixtures/parsers_test.go#L154-L208
Hrm, that's odd. But it actually works what you said, so I'm going with that for now.
Thanks for taking your time, I really appreciate it.
did it work?
one sec
I tried it and it didn't work so it's a bit odd
https://github.com/stripe/stripe-cli/issues/962 I made an issue about this, so I think we can end here.
Again, many thanks for your support. Much appreciated.