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

parameter is invalid when trying to pass Array in swagger #101

Open
lsanc104 opened this issue May 6, 2020 · 1 comment
Open

parameter is invalid when trying to pass Array in swagger #101

lsanc104 opened this issue May 6, 2020 · 1 comment
Labels

Comments

@lsanc104
Copy link

lsanc104 commented May 6, 2020

I was trying to do something like this, but I keep getting Error: items is invalid. Any help is welcome

requires :items, type: Array do
requires :description, type: String, documentation: { desc: 'street', in: 'body' }
requires :quantity, type: String, documentation: { desc: 'street', in: 'body' }
requires :value, type: String, documentation: { desc: 'street', in: 'body' }
requires :weight, type: String, documentation: { desc: 'street', in: 'body' }
requires :hs_tariff_number, type: String, documentation: { desc: 'street', in: 'body' }
requires :origin_country, type: String, documentation: { desc: 'street', in: 'body' }
end

@dblock dblock added the bug? label May 6, 2020
@dblock
Copy link
Member

dblock commented May 6, 2020

It would help if you could please post the request you're making or/and the stack for this error. I'll close this. Please use the Grape mailing list for questions.

Can you please post the stack for this error? Turn it into a speec?

@dblock dblock closed this as completed May 6, 2020
@dblock dblock reopened this May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants