Tufin / oasdiff

OpenAPI Diff and Breaking Changes
https://www.oasdiff.com
Apache License 2.0
663 stars 59 forks source link

change constructors #569

Closed reuvenharrison closed 1 month ago

reuvenharrison commented 2 months ago

This PR adds constructors for the Change objects: ApiChange, ComponentChange and SecurityChange. Goals:

codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 86.71288% with 230 lines in your changes missing coverage. Please review.

Project coverage is 85.90%. Comparing base (e2e437b) to head (b0670ce). Report is 1 commits behind head on main.

Files Patch % Lines
...cker/check_request_property_min_items_increased.go 0.00% 20 Missing :warning:
checker/check_request_property_min_items_set.go 0.00% 20 Missing :warning:
checker/check_request_property_min_set.go 0.00% 20 Missing :warning:
checker/check_request_property_min_updated.go 50.00% 20 Missing :warning:
checker/check_response_property_max_increased.go 0.00% 20 Missing :warning:
checker/check_response_property_min_decreased.go 0.00% 20 Missing :warning:
checker/check_response_property_min_items_unset.go 0.00% 20 Missing :warning:
...ecker/check_request_header_property_became_enum.go 50.00% 10 Missing :warning:
...r/check_request_header_property_became_required.go 50.00% 10 Missing :warning:
checker/check_request_parameters_max_set.go 0.00% 10 Missing :warning:
... and 6 more
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #569 +/- ## ========================================== + Coverage 84.91% 85.90% +0.98% ========================================== Files 228 228 Lines 12976 12984 +8 ========================================== + Hits 11019 11154 +135 + Misses 1551 1415 -136 - Partials 406 415 +9 ``` | [Flag](https://app.codecov.io/gh/Tufin/oasdiff/pull/569/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tufin) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/Tufin/oasdiff/pull/569/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tufin) | `85.90% <86.71%> (+0.98%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Tufin#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.