Skip to content

Make ToMinimalApiResult(IResult) overload public#255

Open
inghamc wants to merge 1 commit into
ardalis:mainfrom
inghamc:feature/public-tominimalapiresult-iresult-overload
Open

Make ToMinimalApiResult(IResult) overload public#255
inghamc wants to merge 1 commit into
ardalis:mainfrom
inghamc:feature/public-tominimalapiresult-iresult-overload

Conversation

@inghamc

@inghamc inghamc commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Addresses part of #244.

The ToMinimalApiResult(this IResult) overload was internal, so a consumer who wants to customize a subset of statuses has to reimplement the entire switch. Making it public lets a custom converter handle the cases it cares about and delegate the rest back to the library.

Pure visibility change + XML doc. Overload resolution is unaffected — concrete Result / Result<T> values still bind to their own overloads — so it is non-breaking. Tested on net6.0 / net7.0 / net8.0.

🤖 Generated with Claude Code

The IResult overload was internal, forcing consumers who want to
customize a subset of statuses to reimplement the whole switch. Exposing
it lets a custom converter handle selected statuses and delegate the rest.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.

1 participant