You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Kiota people! This issue is the Kiota side of octokit/source-generator#23, in which the GitHub SDK team is using Kiota to generate Go code off of our (GitHub's) OpenAPI spec.
Specifically, we're seeing errors with DateOnly arrays as @baywet pointed out.
the cast al[i] = *(v.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly)) will not compile, as Go complains that *serialization.DateOnly does not implement serialization.Parsable (missing method GetFieldDeserializers).
As noted in the code block, the docs endpoint for that request is here and our OpenAPI schema for it looks like:
@baywet we can resolve this serialization by adding the date types introduced in the kiota-abstractions-go to be handled by SendPrimitiveCollection and SendPrimitive. i.e they are to be treated as "primitives" in kiota.
@rkodev thanks for joining the discussion. I think it was the plan all along (DateOnly, TimeOnly, DateTime, DateTimeOffset).
However, I don't believe it requires a change in the interface (abstractions) but simply a change in the generation logic, and maybe a change in the implementation to handle those types.
Thoughts?
Hi Kiota people! This issue is the Kiota side of octokit/source-generator#23, in which the GitHub SDK team is using Kiota to generate Go code off of our (GitHub's) OpenAPI spec.
Specifically, we're seeing errors with DateOnly arrays as @baywet pointed out.
In the following code snippet,
the cast
al[i] = *(v.(*i878a80d2330e89d26896388a3f487eef27b0a0e6c010c493bf80be1452208f91.DateOnly))
will not compile, as Go complains that*serialization.DateOnly does not implement serialization.Parsable (missing method GetFieldDeserializers)
.As noted in the code block, the docs endpoint for that request is here and our OpenAPI schema for it looks like:
Please let me know if we need to make schema changes, if we can help out on the Kiota side at all, or if I can provide more information!
The text was updated successfully, but these errors were encountered: