Skip to content
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

add array to parameter's options #253

Closed
wants to merge 1 commit into from
Closed

add array to parameter's options #253

wants to merge 1 commit into from

Conversation

jaguirresza
Copy link

Add array to parameter's options and update html template.

Add array to parameter's options and update html template.
@Ninigi
Copy link

Ninigi commented Apr 28, 2016

Was looking for this option just today...
My current workaround is declaring the parameters like this:

with_options scope: [:fulfillable_items, " "], required: true do
  parameter :order_id, "The Order the items belong to."
  parameter :item_ids, "The Items to be fulfilled. "\
                                    "Must all belong to the same Order."
end

and then do the request with explicit params

my_params = { fulfillable_items: [item_1, item_2, ..., item_n] }
do_request(my_params)

The docs output looks something like this:

fulfillable_items[ ][order_id]    The Order the items belong to.

@JORGEAGUIRRE would your PR make this a little more elegant, or is it about something completely different?

@oestrich
Copy link
Contributor

Closing due to age.

@oestrich oestrich closed this Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants