Skip to content

Broken nested scoping #256

Closed
Closed
@ralphie02

Description

@ralphie02

I believe scope nesting for the api request parameters are either not properly documented, or broken.
I am trying to do something similar to below:

get '/api/something" do
  parameter :person, "description", scope: :company
  parameter :name, "description", scope: [:company, :person]
end

for a parameter like this -> company[person][name]

but instead it creates something similar to this -> [:company, :person][name] [:company, :person][name]
and yes, there's 2 of the parameter names above this line

I could definitely be wrong and that this feature is already implemented, I'm just using it wrong. If I am, please let me know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions