-
Notifications
You must be signed in to change notification settings - Fork 207
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
Unreferenced schema types are not generated [c#] #4512
Comments
Hi @MihaMarkic |
@baywet Yes, that's exactly what I'm facing. Getting events. But still, can't kiota just generate all schema types regardless since this are real world scenarios and schemas written with OAS3.0? |
no, and that's by design. We're unlikely to change that at this point, we'd rather invest in 3.1 and webhooks support to properly support this scenario. |
I'm out of concerns. In meantime I'll be tweaking OAS3.0 with fake methods that reference these event schemas - to force generation of said types. |
Thanks for confirming! closing |
A provider I wish to communicate with has a callback feature where it POSTs some data to my server. The data type is defined in schema as an object but, I guess, because this particular type is not directly referenced in schema paths (methods), the model is not generated.
When I alter the schema to reference said type, model is generated.
I think all schema types should be generated regardless whether they are referenced, or at least, provide a CLI switch to generate them all.
The text was updated successfully, but these errors were encountered: