Closed valadas closed 1 week ago
The changes in this pull request introduce updates to the Tool
project, specifically enhancing the Commands
class with a new asynchronous method for generating Swagger specifications. The Program
class is modified to support asynchronous execution in its Main
method. The project file is updated to reflect changes in target frameworks and disable implicit usings. Additionally, the build configuration is adjusted to accommodate the new target frameworks, ensuring proper compilation.
File | Change Summary |
---|---|
Tool/Commands.cs | Added public async Task WebApiToSwagger(...) method for generating Swagger specifications. |
Tool/Program.cs | Updated Main method signature from void to async Task and added using System.Threading.Tasks; . |
Tool/Tool.csproj | Changed <TargetFrameworks> from net6.0;net7.0;net8.0 to netstandard2.1;net8.0;net9.0 and updated <ImplicitUsings> from enable to disable . Added <PublishSingleFile>false</PublishSingleFile> . |
build/Build.cs | Updated Compile target frameworks, removing net6.0 and net7.0 , adding netstandard2.1 and net9.0 . Removed a line from Docs target that set a process exit handler. |
sequenceDiagram
participant User
participant Commands
participant GeneratorService
participant File
User->>Commands: Call WebApiToSwagger(...)
Commands->>GeneratorService: Generate OpenAPI Specification
GeneratorService-->>Commands: Return Specification
Commands->>File: Write Specification to output file
File-->>Commands: Confirm Write
Commands-->>User: Return Completion
🐰 "In the code where rabbits play,
New methods hop in bright array.
With Swagger specs, we now can see,
Asynchronous tasks, so swift and free!
Frameworks shift, usings too,
A tool reborn, for me and you!" 🐇
[!WARNING]
Rate limit exceeded
@valadas has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 9 seconds before requesting another review.
⌛ How to resolve this issue?
After the wait time has elapsed, a review can be triggered using the `@coderabbitai review` command as a PR comment. Alternatively, push new commits to this PR. We recommend that you space out your commits to avoid hitting the rate limit.🚦 How do rate limits work?
CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our [FAQ](https://docs.coderabbit.ai/faq) for further information.📥 Commits
Reviewing files that changed from the base of the PR and between bb2b0e0de68bbc35c8473d9aeeea0bdbf09e4f7b and 7cde15621f7d3377bb49342657ab6aee8b6f30bf.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Expanded supported .net runtimes
Summary by CodeRabbit
Summary by CodeRabbit
Enhancements
Bug Fixes