You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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, true
themselves. How to do in this case?The text was updated successfully, but these errors were encountered: