I think that if there is a link object, we should consider defaulting to an object type so that we can add the link field. I think it will be a bit more complicated than that because we will need to map the response object appropriately but that is the gist.
Currently, the response body schema has a higher priority than if there are link objects.
For example, if the response schema is:
or
... OtG will create a field with a string return type, which means we cannot add fields created from link objects.
Only when OtG is already going to create a field with an object return type can a link field be added.
I think that if there is a link object, we should consider defaulting to an object type so that we can add the link field. I think it will be a bit more complicated than that because we will need to map the response object appropriately but that is the gist.