Running hidi version 1.0.0-preview.2 and 1.0.0-preview.3 with this file as input results in a stack overflow exception.
https://github.com/microsoftgraph/msgraph-metadata/blob/master/clean_v10_metadata/cleanMetadataWithDescriptionsAndAnnotationsAndErrorsv1.0.xml
Arguments are
transform --csdl .\clean_v10_metadata\cleanMetadataWithDescriptionsAndAnnotationsAndErrorsv1.0.xml --output openapi.yml --version OpenApi3_0 --loglevel Information --format yaml
Downgrading to 1.0.0-preview.1 however seems to not result in the same behavior.
The issue also gets fixed when I downgrade the Microsoft.OpenApi.OData dependency from 1.0.10 to 1.0.10-preview3 at the head of the vNext branch.
This may need some investigation to understand the root cause.
cc @baywet