-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Description
This way can set the special parameter required:
parameter do
key :name, :id
key :in, :path
key :description, 'ID of pet to fetch'
key :required, true
key :type, :integer
key :format, :int64
end
But if I want to let one of two parameters(either one is ok) be required as:
parameter do
key :name, :id
key :in, :path
key :description, 'ID of pet to fetch'
key :required, true
key :type, :integer
key :format, :int64
end
parameter do
key :name, :user_id
key :in, :path
key :description, 'User ID of pet to fetch'
key :required, true
key :type, :integer
key :format, :int64
end
Since each of them has key :required, true themselves. How to do in this case?
Metadata
Metadata
Assignees
Labels
No labels