Originally posted by **thom0707** August 19, 2024
When targeting `netstandard2.0`, Kiota can generate C# clients with the `DateOnly` data type which was introduced in .NET 6, resulting in a project that fails to build. This only seems to appear in generated indexers. The incoming data format from the OpenAPI specification must also be "date".
Reproduced here:
kiota-test [repo](https://github.com/thom0707/kiota-test).
[Example of DateOnly](https://github.com/thom0707/kiota-test/blob/e45e9101a353ae5c33a6a8a770173f11f444008b/Client/Events/EventsRequestBuilder.cs#L20C1-L20C9)
Thanks for creating the issue after our discussion.
Since you're already offer to put a PR together on the discussion, I went ahead and assigned it to you for the time being.
Let us know if you have any additional comments or questions.
Discussed in https://github.com/microsoft/kiota/discussions/5186
Thanks for creating the issue after our discussion. Since you're already offer to put a PR together on the discussion, I went ahead and assigned it to you for the time being. Let us know if you have any additional comments or questions.