-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling JSON object as parameter #1917
Enabling JSON object as parameter #1917
Conversation
This PR is a work in progress thus marked as a draft. Pushed it as a PR so reviewers can take a look at the WIP code. porter-1508-consume-parameter-jsonobject.mp4Hi @carolynvs , I am sorry in advance for pushing a not-finished PR since I guess there are some things that I missed on how things work here. I am not sure why does the contents of the file from the root folder (which should be In the video, I tried to print all the contents of the file inside the Thank you lots in advance! 😄 |
@joshuabezaleel Sorry I'm having trouble following what the problem is based on your description and the video. When a parameter is not specified, the parameter's value is set to the default value defined in the bundle, which based on your video is exactly what is happening. What did you expect to happen? |
I tried to take a step back and just saw that there's a section for Object Parameters on the Create a Bundle task page on the |
Here's how to set a parameter value with quotes in it (wrap the entire flag value in the single quotes)
That still won't work though because there is a bug in how we are defining the --param flag, which is being fixed in #1931. To work around it change the following line to use StringArrayVar Line 168 in 9d4c067
|
@carolynvs Ah I see, while waiting for #1931 to be merged, will it be okay if I close and drop this PR and issue for a while as not to leave this PR dangling and I may be able to work on other issue? |
Yeah don't worry about it. Feel free to close this PR. |
What does this change
Consuming JSON object from a file as parameter with the type of "object".
What issue does it fix
Closes #1508
Notes for the reviewer
Put any questions or notes for the reviewer here.
Checklist
Reviewer Checklist