Skip to content

Fix onErrorStatusConflict set via updateDefaultSettings#3123

Merged
kstich merged 1 commit into
mainfrom
dev/kstich/fix-error-status-conflict-strategy-ordering
May 14, 2026
Merged

Fix onErrorStatusConflict set via updateDefaultSettings#3123
kstich merged 1 commit into
mainfrom
dev/kstich/fix-error-status-conflict-strategy-ordering

Conversation

@kstich
Copy link
Copy Markdown
Contributor

@kstich kstich commented May 14, 2026

The error deconflicting logic in OpenApiConverter read config.getOnErrorStatusConflict() before either
composedMapper.updateDefaultSettings or
openApiProtocol.updateDefaultSettings was called. This made it impossible for protocols or mappers to set the strategy.

Move the deconflict block to after both updateDefaultSettings calls, and set the model and config on the JSON schema converter builder afterward so they reflect the final state.

Fixes #3120


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

The error deconflicting logic in `OpenApiConverter` read
`config.getOnErrorStatusConflict()` before either
`composedMapper.updateDefaultSettings` or
`openApiProtocol.updateDefaultSettings` was called. This made it
impossible for protocols or mappers to set the strategy.

Move the deconflict block to after both `updateDefaultSettings`
calls, and set the model and config on the JSON schema converter
builder afterward so they reflect the final state.
@kstich kstich requested a review from a team as a code owner May 14, 2026 17:34
@kstich kstich requested a review from joewyz May 14, 2026 17:34
@kstich kstich merged commit b17bbf0 into main May 14, 2026
16 checks passed
@kstich kstich deleted the dev/kstich/fix-error-status-conflict-strategy-ordering branch May 14, 2026 18:04
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.

It is not possible to set ErrorStatusConflictHandlingStrategy from OpenApiProtocol

2 participants