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

Array parameter in form data #115

Open
cdjohnnatha opened this issue Feb 23, 2018 · 0 comments
Open

Array parameter in form data #115

cdjohnnatha opened this issue Feb 23, 2018 · 0 comments

Comments

@cdjohnnatha
Copy link

cdjohnnatha commented Feb 23, 2018

When it's used an array as parameter in a form data, there are not accepting key type like integer. It's converting each item to a string.

For example: If I put

parameter do
key :in, :formData
key :name, "project[team_ids][]"
key :type, :array
items do
key :type, :integer
end
key :description, "Team Ids"
key :required, false
end
end

The curl generates something like: -F "project[team_ids][]="1","1""

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

No branches or pull requests

1 participant