If a deeply-nested definition contains a $ref, Resource.Expand does not expand the reference, leading to an empty type in the expanded Resource's properties.
It seems like Resource.Expand only expands one level of nested properties.
One level is all that should be required as the documentation says nested properties are not allowed.
Pragmatically we could expand any $refs at the second level.
If a deeply-nested definition contains a
$ref
,Resource.Expand
does not expand the reference, leading to an empty type in the expanded Resource's properties. It seems likeResource.Expand
only expands one level of nested properties.