Skip to content

Fault responses: an opt-in that withholds the fault name for chosen members or a fault type #85

Closed

Description

@CaffeinatedCoder

Every problem ToHttpResult() writes carries fault, the member's name. A sign-in that answers 401 for an unknown user and for a wrong password still says which. Today the boundary maps both to one member of its own fault type (decision 64); decision 64 names an additive opt-in for 2.1+, now in the roadmap's 2.3.0 section.

Proposal

An opt-in, in the fault mapping, that withholds the fault (and rule) member from the problem for chosen members or a whole fault type, so two causes can share a status without a mapping at the boundary. The default stays as it is. A new decision record states the shape and how the document describes such a response (no fault member promised).

Done when

  • A withheld member's problem has no fault and no rule; two withheld members on one status answer byte for byte alike apart from what the application wrote in detail.
  • The OpenAPI document does not promise fault where every member answered with that status withholds it.
  • Documented in the AspNetCore README with a compiled sample; SignInSampleTests' pattern still holds.

Activity

  1. added this to the 2.3.0 milestone on Oct 28, 2026
  2. added
    enhancement
    package/aspnetcore
    on Oct 28, 2026
  3. CaffeinatedCoder commented on Oct 28, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Done in PR #96, merged into release/2.3.0.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementpackage/aspnetcore

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions