-
Notifications
You must be signed in to change notification settings - Fork 10.5k
adds kiota to dotnet openapi tool #41928
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
Closed
+149
−1
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
eeafd28
- preliminary work to add kiota to dotnet open api tool
baywet a12c948
- bumps api description tool for kiota
baywet f29c314
- preliminary work to add kiota to dotnet open api tool
baywet cfbf9e9
- bumps api description tool for kiota
baywet d7f9aae
- adds additional dependencies for kiota CSharp project
baywet 1bf0afb
Merge branch 'feature/openapi-kiota' of https://github.com/baywet/asp…
baywet File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Referencing only this package, will updated projects using
KiotaCSharporKiotaTypeScriptbe able to successfully use a generated client❔There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not at the moment, they'll need at least
Microsoft.Kiota.Abstractionsfor dotnet projects and@microsoft/kiota-abstractionsfor typescript projects to compile.They'll also need
Microsoft.Kiota.Http.HttpClientLibrary/@microsoft/kiota-http-fetchor an alternative implementation to execute the requestsThey'll also need
Microsoft.Kiota.Serialization.Json/@microsoft/kiota-serialization-jsonor an alternative implementation to handle serialization/deserialization.And finally, they might need
Microsoft.Kiota.Authentication.Azure/@microsoft/kiota-authentication-azureor an alternative if their API requires authentication.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆗 then this PR is not complete as-is. When using the NSwag generator options, the generated client is immediately useful and this should be the same.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what would be the recommended approach from your point of view? add those dependencies to the APIDescription package?
Or add those dependencies to the target through the same mechanism we're adding the API description package?
I prefer the later as it provides more control to users over which dependencies and versions dependencies they bring to their project should they want to change things.
Also, how are the JS/TS/npm packages added? are they being wrapped in a nuget package? or is there a possibility to add a reference to an npm package? if so how?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be my preference.
I'm not sure what JS/TS/npm dependencies an NSwag client requires or how those dependencies are handled. For all I know, the generated client works standalone. @bradygaster do you have more information❔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added the dependencies for dotnet. waiting on @bradygaster 's input for the typescript ones