richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add param for nested attributes?

shahfaizanali opened this issue · comments

I want to add param for nested attributes of an associated model.

For Example:

images_attributes: [:id,:file,:_destroy]

Is it possible?

commented

param :form, 'image_attributes[0][file]', :file, :required, 'File'
idk about more efficient way when you need long array of nested attributes, but don't think that's necessary
Edit: already in closed, could try
#71