Skip to content

GH-5353 ProblemDetails factory for the 409 conflict mapping - #5370

Merged
jeremydmiller merged 1 commit into
mainfrom
stoat/nov-5-releases/wv-5353
Nov 5, 2026
Merged

jeremydmiller merged 1 commit into
mainfrom
stoat/nov-5-releases/wv-5353

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Adds an optional toProblemDetails factory to MapConcurrencyFailuresToConflict, MapMartenConcurrencyFailuresToConflict and MapPolecatConcurrencyFailuresToConflict. Default behavior is unchanged.

The factory is stored on WolverineHttpOptions.ConflictProblemDetailsFactory; the middleware OnException methods take WolverineHttpOptions as a parameter (a DI singleton), which is how it reaches the generated code. A null Status is filled in as 409.

Not done here: the issue's separate question about dropping the message from Detail in the 7.0 default (#5195) is a decision for later and is not part of this change.

Fixes #5353

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jeremydmiller
jeremydmiller merged commit 69b3828 into main Nov 5, 2026
This was referenced Nov 6, 2026
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.

Wolverine.HTTP: let the 409 conflict mapping take a ProblemDetails factory

1 participant