-
-
Notifications
You must be signed in to change notification settings - Fork 233
WireMock.Net.OpenApiParser : support Examples #1366
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
Conversation
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.
Pull Request Overview
This PR adds support for OpenAPI Examples in the WireMock.Net.OpenApiParser by implementing a hierarchical example resolution strategy that prioritizes direct examples over schema examples. The changes refactor the mapping logic to better handle both request and response examples with improved precedence ordering.
- Implements support for OpenAPI Examples collections in addition to existing Example properties
- Refactors constructor to use primary constructor syntax and expression-bodied initialization
- Extracts request and response body mapping into separate methods for better code organization
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1366 +/- ##
==========================================
- Coverage 35.71% 34.41% -1.31%
==========================================
Files 152 160 +8
Lines 34539 38063 +3524
==========================================
+ Hits 12337 13099 +762
- Misses 21777 24481 +2704
- Partials 425 483 +58 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.