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

Request to add support of multiple nested levels of params #229

Closed
clamoris opened this issue Mar 31, 2014 · 6 comments
Closed

Request to add support of multiple nested levels of params #229

clamoris opened this issue Mar 31, 2014 · 6 comments

Comments

@clamoris
Copy link
Contributor

I have something like this in a project:

  param :validations, Hash  do
    param :global, Array, :desc => "Global validations" do
      param :id, String, :desc => "Id of validation", :required => true
      param :type, %w(aaa bbb ccc), :desc => "Validation type"
    end
    param :per_item, Array, :desc => "Validations for specific item" do
      param :id, String, :desc => "Id of item", :required => true
      param :validations, Array do
        param :id, String, :desc => "Id of validation", :required => true
        param :type, %w(aaa bbb ccc), :desc => "Validation type"
      end
    end
  end

But in documentation, I see only
validations[global]
validations[per_project]
With a description like "Value: Must be an Array of nested elements"

I'd like to be able to see full param tree

@mtparet
Copy link
Contributor

mtparet commented Mar 31, 2014

Feel free to contribute :)

@iNecas
Copy link
Member

iNecas commented Apr 1, 2014

I've noticed that as well, let me fix that :)

@iNecas
Copy link
Member

iNecas commented Apr 1, 2014

Here we go #230

@clamoris
Copy link
Contributor Author

clamoris commented Apr 2, 2014

Looks good to me, thanks!)
Also, bump version please, if it not a big trouble.

@clamoris clamoris closed this as completed Apr 2, 2014
@iNecas
Copy link
Member

iNecas commented Apr 4, 2014

v0.1.3 is all yours :)

@clamoris
Copy link
Contributor Author

clamoris commented Apr 4, 2014

Thanks!

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

3 participants