We use multiple levels of inheritance in our model.
At this point, the generated anyOf() for responses or request bodies is missin gout all of our leaf types as they are not directly inherited from the type of a navigation property.
This doesn't work for us as the key types we can pass to an API are simply missing.
It appears that EdmModelHelper.GetDerivedTypesReferenceSchema needs to walk the full hierarchy rather than stopping at one level.