package -> library

This commit is contained in:
siemensikkema 2021-11-17 14:49:39 +01:00
parent d7768e2f33
commit 2fe05fbfd8
1 changed files with 2 additions and 2 deletions

View File

@ -6,9 +6,9 @@ Type-safe and composable validations with versatile output.
Validating that data follows certain rules is relevant in situations where end-users or other services submit data to your application.
The aim of this package is to enable you to express such validation rules in a type-safe and flexible manner while making it possible to collect all failures at once and have full flexibility over how any violations of the rules are presented.
The aim of this library is to enable you to express such validation rules in a type-safe and flexible manner while making it possible to collect all failures at once and have full flexibility over how any violations of the rules are presented.
This package builds on the `Decoded` package to take advantage of its ability to collect any and all error states during the decoding process as opposed to failing on the first error. This makes it possible to combine _structural_ decoding related errors with _semantic_ failures as defined by validation rules in a single pass.
This library builds on the `Decoded` library to take advantage of its ability to collect any and all error states during the decoding process as opposed to failing on the first error. This makes it possible to combine _structural_ decoding related errors with _semantic_ failures as defined by validation rules in a single pass.
``Validator`` values can be passed around and combined as needed before performing the actual validation. This enables you, among other things, to combine validations that require asynchronicity with those that don't.