how to implement the dynamic response for the API?
i need to cover the case to return the different response structs for the customers. for example : list of devices, or list of the users, depends on the query params.
the interface is not enough as I want to let the customers know which fields potentially can be there in the response.
to make it works I need AnyOf or OneOf options which is present in the swagger itself.