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
Basically when we compile the server we request generate the spec json file and we use it right away to run kiota gen and generate the code to be used by the client (directly in client folder).
For this we need to update Uno's new solution wizard to include an option for the server to use kiota or not.
When not using kiota we should keep the current structure with a DTO project shared between the server and the client,
When using kiota we should remove that project and include all tasks to run generation as described above.
External API
The API will most likely not change very often and kiota generator will have to be run only once. While it would be nice, having a generator for that is probably overkill.
Along with work from #2510
Currently, the generation of the kiota classes based on the openapi json/yml spec needs to be done manually before building the project.
See: https://learn.microsoft.com/en-us/openapi/kiota/using#client-generation
We need to find a way to incorporate this into the build process when using the Kiota Uno Extension.
Proposed API
I am imagining something like an
IHostBuilder
extension method called.UseKiota("PATH_TO_API_SPEC.json")
or perhaps on a per client basis like:The text was updated successfully, but these errors were encountered: