Skip to content

params are not loading when defined both in desc block and separate params block #400

Open
@brahamshakti

Description

@brahamshakti

Desc block params are not loading when defined with separate params block, e.g.

desc "Create a User.", {
        headers: {'XAuthToken': {required: true}},
        params: Entities::UserEntity.documentation
}
params do
        optional :extra_parameter, type: String
end

In above case only extra_parameter and header field are visible. This worked well previously by showing all desc block params field with separate params block field.

This code works well by displaying header field with optional extra_parameter

desc "Create a User.", {
        headers: {'XAuthToken': {required: true}},
}
params do
        optional :extra_parameter, type: String
end

but below code only shows params field and not header field (I have removed extra param block)

desc "Create a User.", {
        headers: {'XAuthToken': {required: true}},
        params: Entities::UserEntity.documentation
}

I think this is a bug. What you guys think.

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