Skip to content

Merge response and request bodies #41

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

Merged

Conversation

reinfi
Copy link
Contributor

@reinfi reinfi commented Dec 29, 2023

Merges response and requestBodies from components section.

It is only a top-level merge, so no media-types are merged at this point. I think that would fit most of the cases.

If at some point we might need a media-type merge it would be easily to implement.

I did not add any acceptance tests files because as in the acceptance the references are resolved there would be no benefit of using refs in components section. This would only test the underlying OpenApi library.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c0d0c17) 99.31% compared to head (6cf1b9b) 99.34%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #41      +/-   ##
============================================
+ Coverage     99.31%   99.34%   +0.02%     
- Complexity       90       94       +4     
============================================
  Files            17       17              
  Lines           294      306      +12     
============================================
+ Hits            292      304      +12     
  Misses            2        2              
Files Coverage Δ
src/Merge/ComponentsMerger.php 100.00% <100.00%> (ø)
src/OpenApiMerge.php 100.00% <100.00%> (ø)

@marcelthole marcelthole merged commit 6450c04 into marcelthole:main Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants