Closed zifahm closed 1 year ago
This issue seems inactive. If it's still relevant, please add a comment saying so. Otherwise, take no action.
→ If there's no activity within a week, then a bot will automatically close this.
Thanks for helping to improve Shopify's dev tooling and experience.
Please confirm that you:
What type of project are you working on?
other
Expected behavior
Adding and excaped json with key value should be accepted for --images
eg:
--images="{\"src\":\"src-url.png\", \"altText\":\"alt\"}"
A Fix for this error by Stephan made it work https://discord.com/channels/842813079926603828/1006230403838906420/1006275813504729179
Adding a JSON.parse fixes the issue
Why not a PR? Because I have no idea anything about ruby!
Actual behavior
Throws and error for invalid json
Stack trace
No response
Reproduction steps
shopify populate products --images="{\"src\":\"hello\"}"
Operating System
Ubuntu 20.4
CLI version (run
shopify version
if you're not sure)2.32.0
Shell
No response
Ruby version (run
ruby -v
if you're not sure)No response
What language and version are you using in your application?
No response