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?
This way can set the special parameter required:
But if I want to let one of two parameters(either one is ok) be required as:
Since each of them has
key :required, truethemselves. How to do in this case?