Closed gadcam closed 3 months ago
Hi @gadcam,
Thanks for reporting the issue, do you have a sample openapi yml snippet you were using so that I can use it to debug the issue. Thanks.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Duration being a class (plus probably some other factor I do not understand) https://github.com/microsoft/kiota-typescript/blob/dfbafb0aaf1afdb49e920c2c0c77c15766fce135/packages/abstractions/src/duration.ts#L8
It triggers this exception https://github.com/microsoft/kiota/blob/c78914ba8b21d33aecba9539b9584edbf4b4fec8/src/Kiota.Builder/Writers/TypeScript/CodePropertyWriter.cs#L26
The following patch to Kiota enables to finish the generation but the resulting code is not satisfactory (I had to edit it to make it build). It was more a confirmation of the code path that led to the issue.