Skip to content

Dr satyr/issue346 #769

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
merged 2 commits into from
Apr 17, 2025
Merged

Dr satyr/issue346 #769

merged 2 commits into from
Apr 17, 2025

Conversation

DrSatyr
Copy link
Collaborator

@DrSatyr DrSatyr commented Apr 17, 2025

Add tests to cover issue #346. The issue is not related to the required handling, it is related to the AllOf handling.

@DrSatyr DrSatyr requested a review from Copilot April 17, 2025 21:18
Copy link

@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 tests to cover issue #346 by verifying the handling of required property changes in both request and response schemas.

  • Added a new test method requiredPropertyChangedTest in SchemaDiffTest.java to verify required property changes.
  • Introduced a helper method getResponseBodyChangedSchema in ChangesResolver.java to support response schema diffing for the new test.
  • Removed an outdated multipleOf compatibility assertion as part of the schema change verification.

Reviewed Changes

Copilot reviewed 3 out of 5 changed files in this pull request and generated no comments.

File Description
core/src/test/java/org/openapitools/openapidiff/core/SchemaDiffTest.java Added tests for required property changes and removed an obsolete multipleOf compatibility check.
core/src/test/java/org/openapitools/openapidiff/core/ChangesResolver.java Introduced a new helper method to obtain response schema changes to support the added tests.
Files not reviewed (2)
  • core/src/test/resources/schemaDiff/required-property-1.yaml: Language not supported
  • core/src/test/resources/schemaDiff/required-property-2.yaml: Language not supported

@DrSatyr DrSatyr merged commit b3d2393 into master Apr 17, 2025
6 checks passed
@DrSatyr DrSatyr deleted the DrSatyr/issue346 branch April 17, 2025 21:20
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.

1 participant