Skip to content

Documentation

Arnel Robles edited this page Sep 29, 2026 · 1 revision

Verdict documentation

Start with the core package and add only what you need. Nothing here pulls in a dependency you did not ask for.

dotnet add package Verdict

Guides

Guide Read it when
Developer quick reference You want the API in one page
Architect's decision guide You are deciding whether to adopt Verdict
Design decisions You want to know why it is shaped this way, including what was tried and rejected
How Verdict does it better You are comparing against FluentResults or similar
Migrating to 3.0 You are on any 2.x. Two changes need an edit
Migrating to 2.5 You are on 2.4 or earlier
Thread safety You share a Result between threads
Runtime support You publish with PublishAot, trimming, or on .NET 10

Packages

Each package is documented on its own page. The core has no dependencies; every other package depends only on the core unless noted.

Package Adds Guide
Verdict Result, Result<T>, Error, Unit, and the core combinators core.md
Verdict.Extensions Validation, combining many results, exception capture extensions.md
Verdict.Async ValueTask and Task combinators, timeouts async.md
Verdict.Fluent Match, OnSuccess, OnFailure chaining fluent.md
Verdict.Json System.Text.Json converters, AOT-safe registration json.md
Verdict.Rich Success messages and typed error metadata rich.md
Verdict.Logging Microsoft.Extensions.Logging integration logging.md
Verdict.AspNetCore RFC 7807 ProblemDetails, status code mapping aspnetcore.md

Choosing what to install

Verdict                     always
  ├── .Extensions           validating input, collecting multiple errors
  ├── .Async                your methods return Task<Result<T>>
  ├── .Fluent               you prefer Match/OnSuccess over if-statements
  ├── .Json                 Results cross an API boundary
  ├── .Rich                 you need success messages or error metadata
  ├── .Logging              you log results through ILogger
  └── .AspNetCore           you return Results from controllers or minimal APIs

A typical web API uses Verdict, .Extensions, .Async and .AspNetCore. A library that returns results to callers usually needs the core alone.

Internal documents

docs/internal/ holds security assessments, code reviews and release summaries from earlier versions. They are kept for history and are not current documentation; several describe 1.0 and 2.1. Nothing there should be read as describing how the library behaves today.

Clone this wiki locally