We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the following example POST payload, how would you configure rspec_api_documentation for the authors key given it is an Array of N-objects?
rspec_api_documentation
authors
{ "book" : { "id": "2", "name": "Awesome", "authors": [ { "first_name": "Justin", "last_name": "Smestad" } ] } }
The text was updated successfully, but these errors were encountered:
I'm also trying to figure out how to handle arrays. Did you ever come up with a solution to this?
Sorry, something went wrong.
Nope
something like that:
... parameter :authors, scope: :book let(:authors) do [{ first_name: 'Justin', last_name: 'Smestad' }] end route_description <<-DESC authors: first_name: :string, :required last_name: :string, :required DESC
No branches or pull requests
Given the following example POST payload, how would you configure
rspec_api_documentation
for theauthors
key given it is an Array of N-objects?The text was updated successfully, but these errors were encountered: