Skip to content

Empty field for group parameters' name with type hash or Array #91

Closed
@salimane

Description

@salimane

Take the following example:

params do
  optional :preferences, type: Array do
    requires :key
    requires :value
  end

  requires :name, type: Hash do
    requires :first_name
    requires :last_name
  end
end

In swagger-ui, there would be an empty text field for preferences and name. Is this suppoed to be this way ? Tested using the github version of grape and grape-swagger.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions