liveBook · Manning

Validation result

A validation result represents whether an input satisfies validation checks, carrying either a successful value or failure information that may include multiple errors.

How 3 Manning books explain it

The Joy of JavaScript

A computation or data structure that represents success or failure and supports propagating results through the successful branch while preserving failure context.

How it is used
Replaces scattered validation branches with composable results that preserve failure reasons across a sequence of checks.
How deep it goes
Builds Success and Failure classes, assigns mapping and chaining behavior, and applies them to recursive validation.
Examples
Uses block hash and timestamp checks, nullable strings, file reading, recursive blockchain validation, and safe division.
What you can do after
Build it from scratch and apply it to chain checks that stop on Failure while retaining an error message.

Read how The Joy of JavaScript explains validation result →

Functional Programming in C#, Second Edition

A validation type represents either a successful value or one or more errors, allowing errors from multiple checks to be collected.

How it is used
Models business-rule failures as returned values in transfer workflows and validates collections of inputs.
How deep it goes
Explains both states and implements fail-fast Bind, accumulating Apply, validator aggregation, and Traverse.
Examples
Uses transfer-date and BIC checks, phone-number fields, and comma-separated number parsing to illustrate validation.
What you can do after
Apply it via LaYumba.Functional to compose validators, choose fail-fast or error-accumulating flows, and handle validation outcomes.

Read how Functional Programming in C#, Second Edition explains validation result →

Clean Applications with Hexagonal Architecture

Validation is a Vavr value type for applicatively accumulating validation errors or producing a valid value.

How it is used
Accumulates validation failures when constructing domain objects or checking command input.
How deep it goes
Explains valid and invalid results, combining checks, and applying a constructor to validated values.
Examples
Uses article creation with invalid title and content, plus command checks for required fields and UUID formats.
What you can do after
Apply it via Vavr to collect multiple errors or produce a validated value from combined checks.

Read how Clean Applications with Hexagonal Architecture explains validation result →

What to know first

Related concepts

Questions about validation result

What is validation result?

A validation result represents whether an input satisfies validation checks, carrying either a successful value or failure information that may include multiple errors.

Which Manning books explain validation result?

The Joy of JavaScript, Functional Programming in C#, Second Edition and Clean Applications with Hexagonal Architecture.

What should I know before learning validation result?

Manning books that teach validation result usually introduce boolean, functional programming, identity function and monad first.

What is validation result a kind of?

Validation result is a kind of Either. Either is a parameterized sum type whose values hold one of two alternatives, often used to represent an error or a successful result.

What is validation result part of?

Validation result is part of Task<T>. Task<T> is a .NET type representing an asynchronous operation that returns a result of type T.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.