Flow.Validated
1.0.2
dotnet add package Flow.Validated --version 1.0.2
NuGet\Install-Package Flow.Validated -Version 1.0.2
<PackageReference Include="Flow.Validated" Version="1.0.2" />
<PackageVersion Include="Flow.Validated" Version="1.0.2" />
<PackageReference Include="Flow.Validated" />
paket add Flow.Validated --version 1.0.2
#r "nuget: Flow.Validated, 1.0.2"
#:package Flow.Validated@1.0.2
#addin nuget:?package=Flow.Validated&version=1.0.2
#tool nuget:?package=Flow.Validated&version=1.0.2
Flow.Validated
Overview
This library provides simple extension methods for converting Validated<T> results into Flow<T> results, making it easier to integrate validation outcomes with flow returns.
Getting started
Add the Flow.Validated nuget package to your project using Nuget Package Manager or the dotnet CLI:
dotnet add package Flow.Validated
Add the using statement using Validated.Core.Extensions. to access the ToFlow<T> extension.
Usage
Currently there is a single ToFlow<T> extension method with an async overload that attaches to a Validated<T> returning a Flow<T>
If the Validated<T> is invalid it creates a failed Flow<T> using the Failure.InvalidEntryFailure type, copying the list of InvalidEntry into the failure.
Note: If any of the invalid entries have a Cause that is not set to Validation, such as SystemError or RuleConfigError then the CanRetry property is set to false otherwise it is set to true
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Flow.Core (>= 3.2.0)
- Validated.Core (>= 1.2.0)
-
net9.0
- Flow.Core (>= 3.2.0)
- Validated.Core (>= 1.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Updated to reference the version 1.2.0 of Validated.Core