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
Some of our APIs return polymorphic associations, as in, the return value could be one of a few different models.
It would be nice to be able to do some kind of "OR", "anyOf", or "oneOf" action, something like:
def_param_group :user do
# some params here
end
def_param_group :robot do
# some params here
end
# later on in in a returns block
property :entity, Hash, oneOf: [:user, :robot]
is that possible today?
The text was updated successfully, but these errors were encountered:
Some of our APIs return polymorphic associations, as in, the return value could be one of a few different models.
It would be nice to be able to do some kind of "OR", "anyOf", or "oneOf" action, something like:
is that possible today?
The text was updated successfully, but these errors were encountered: