← 输入框|github.com|刷新
Skip to content

[Feature]: Make ambiguous oneOf violations configurable - #410

Merged
pboos merged 3 commits into
getyourguide:mainfrom
visheshupadhyay:feature/configurable-ambiguous-oneof-violations
Nov 2, 2026
Merged

pboos merged 3 commits into
getyourguide:mainfrom
visheshupadhyay:feature/configurable-ambiguous-oneof-violations

Conversation

@visheshupadhyay

Copy link
Copy Markdown
Contributor

functionality for #409

@visheshupadhyay
visheshupadhyay requested a review from a team as a code owner October 20, 2026 16:37
@gyg-pr-tool
gyg-pr-tool Bot requested a review from ronaldgyg October 20, 2026 16:37
@coderabbitai

coderabbitai Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Central TS config (base), Organization UI (inherited); Enforced overrides: Organization
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5acc1d2d-dacf-4a72-a082-5e3102434a57
Commits

Reviewing files that changed from the base of the PR and between 29ddf86 and b029b28.

Files selected for processing: 2
  • openapi-validation-core/src/main/java/com/getyourguide/openapi/validation/core/exclusions/InternalViolationExclusions.java
  • openapi-validation-core/src/test/java/com/getyourguide/openapi/validation/core/exclusions/InternalViolationExclusionsTest.java

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Recent review details
Additional comments: 2
openapi-validation-core/src/main/java/com/getyourguide/openapi/validation/core/exclusions/InternalViolationExclusions.java: 1

11-23: LGTM!

Also applies to: 32-32

openapi-validation-core/src/test/java/com/getyourguide/openapi/validation/core/exclusions/InternalViolationExclusionsTest.java: 1

62-70: LGTM!

Also applies to: 72-80

Summary

Risk Score: Normal - Addressing the comments needed

By default, ambiguous oneOf violations remain excluded. The new constructor option lets callers disable that exclusion so these violations are reported. Tests cover both settings. The change affects validation reporting; the supplied evidence does not indicate a production outage risk.

InternalViolationExclusions now accepts a flag that controls whether it excludes ambiguous oneOf violations. The existing one-argument constructor enables this behavior by default. Tests cover both enabled and disabled settings for the same response violation.

Suggested labels: coderabbit-risk:high

Change: Feature

Merge Risk: Minimal · up to b029b

The new setting is configurable without changing existing default behavior. No merge-blocking risk remains.

- [ ] Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@pboos
pboos merged commit 2d23d65 into getyourguide:main Nov 2, 2026
3 checks passed
@visheshupadhyay

Copy link
Copy Markdown
Contributor Author

Thanks @pboos for taking another look! Yes, keeping true as the default preserves the existing behavior, while allowing consumers to explicitly enable reporting of ambiguous oneOf violations.

Appreciate the review!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants