ardalis / ardalis/Result

Can I pass a value into Conflict() ?

Open
#235 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1k
Forks
127
PR merge metrics
No merged PRs in 30d

Description

In my scenario I need to return "Retry-After" value when the result is Conflict (basically a `DateTimeOffset`). Is this possible?
I looked into the code and the only way to pass anything is `errorMessages` array.

I think this is a valid scenario.

Contributor guide

Open the contributing guide

Research direction

Start at the Conflict() entry point and its errorMessages argument, then review the existing result-to-HTTP mapping described by the repository. Define and verify support for carrying a DateTimeOffset Retry-After value with a Conflict result; the issue names no file or test, so the appropriate implementation point and acceptance coverage still need to be identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.