Open
Description
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.