-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kiota go generator loses properties in schema that contains a oneOf
#2720
Comments
Thanks for reporting this @mikekistler |
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. |
@baywet not stale. |
@mikekistler Thank you for your patience on this one, can you try to repo on 1.8.1 and let us know whether this is still happening please? |
It is still happening, though the exact behavior has changed somewhat. With 1.8.1 the Widget schema to converted to the following Go struct: // Widget composed type wrapper for classes Gadget, WingDing
type Widget struct {
// Composed type representation for type Gadget
gadget Gadgetable
// Composed type representation for type WingDing
wingDing WingDingable
} The |
Note: I recently tested this one again and this is still a problem. The root properties are still missing. This is an area we should switch to pattern matching to exhaust all the scenarios like we did for all of in #4381 and #4668. |
Given a schema that contains
properties
and aoneOf
, the properties of the schema are not present in the generated struct for the schema. An example:The
Widget
struct generated by Kiota looks like this:Note that the struct does not contain an
id
orweight
property.The text was updated successfully, but these errors were encountered: