Skip to content

Conversation

StefH
Copy link
Collaborator

@StefH StefH commented Oct 12, 2025

No description provided.

Copy link
Contributor

@Copilot Copilot AI left a 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.

Copy link

codecov bot commented Oct 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 34.41%. Comparing base (f6c5225) to head (a43d61f).
⚠️ Report is 2 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant