microsoft / kiota-typescript

TypeScript libraries for Kiota-generated API clients.
https://aka.ms/kiota/docs
MIT License
32 stars 25 forks source link

Dotnet cant convert TimeOnly with 12 numbers in milliseconds #1202

Closed illunix closed 1 month ago

illunix commented 1 month ago

Hello, I have issue because dotnet cant parse TimeOnly milliseconds with 12 numbers, from what I tested max numbers of milliseconds is 7.

If you want test it just use TimeOnly type on property in request body and you will see

illunix commented 1 month ago

https://github.com/microsoft/kiota-typescript/pull/1203

andrueastman commented 1 month ago

Thanks for raising this @illunix

Any chance you can share more details on the discrepancy? Is it that the kiota libraries for dotnet can't handle the 12 numbers or the language runtime? If its the former, would it better to fix in the dotnet side rather than reduce precision here?

illunix commented 1 month ago

It is the dotnet side, dotnet can't handle more than 7 digits in milliseconds in TimeOnly @andrueastman