-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Generate Refit interfaces as partial #162
Conversation
Generated interfaces across the codebase were changed from regular to partial. This change allows the clients to extend the functionality of these interfaces without modifying auto-generated code. Tests were also updated to verify this change
Changed the interface declarations in the Refitter.Tests from regular to partial interfaces. This allows for more flexibility in implementation by allowing interfaces to be defined across multiple files, enhancing modularity and readability of the code.
Modified SwaggerPetstore and other related interfaces to being 'partial' in various source files. This allows for these interfaces to be defined in multiple parts for more flexible and manageable codebase extension.
Codecov Report
@@ Coverage Diff @@
## main #162 +/- ##
=======================================
Coverage 98.40% 98.41%
=======================================
Files 39 39
Lines 1255 1258 +3
=======================================
+ Hits 1235 1238 +3
Misses 6 6
Partials 14 14
Flags with carried forward coverage won't be shown. Click here to find out more.
|
All interfaces were changed to partial in both README.md and Refitter/README.md of the SwaggerPetstore project. This allows for easy extension of these interfaces without modifying the generated code. Such a change prepares the code for upcoming features that may require the addition of methods to these interfaces. This is particularly important for maintaining backwards compatibility as the project grows.
Modified the PR template's example of a generated Refit interface. Specifically, the IReferenceparameters interface has been made partial. This change aligns the template with our coding standards that advise using partial interfaces for better modularity and maintenance.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Generated interfaces across the codebase were changed from regular to partial. This change allows the clients to extend the functionality of these interfaces without modifying auto-generated code. Tests were also updated to verify this change