FPrimitive 1.5.0

.NET project to help developers build a correct and more secure domain model by providing building blocks, standard types and trust boundaries.

Install-Package FPrimitive -Version 1.5.0
dotnet add package FPrimitive --version 1.5.0
<PackageReference Include="FPrimitive" Version="1.5.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FPrimitive --version 1.5.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Spec additions
`startWith(Of)` to verify the header of a `string`
`unique(Of)` to verify if a sequence has unique values
`createModelWith` to run directly a "cross-world" function (`a -> Result<'b, 'error>`) on the validated value
C# basic LINQ function (`Select`, `SelectMany/Then`, `Where`, `Aggregate`, `Zip`, ...) on the `ValidationResult<'T>` type
together with a `Traverse/Sequence` pair to run directly a series of validation functions on a sequence
Type additions
`BoundedInt`, an integer that is bound by a min/max threshold
`NonEmptySeq<'T>`, a sequence that contains at least one element
`UniqueSeq<'T>`, a sequence that only contains unique elements
`XmlEncodedString`, a `string` that can be considered a valid XML text (not neccessary a XML element)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.5.0 48 8/21/2019
1.0.0 56 7/5/2019
1.0.0-alpha 50 7/3/2019