https://github.com/flarebyte/validomix
From Strings to Objects Validomix validates all
https://github.com/flarebyte/validomix
Last synced: 9 months ago
JSON representation
From Strings to Objects Validomix validates all
- Host: GitHub
- URL: https://github.com/flarebyte/validomix
- Owner: flarebyte
- License: mit
- Created: 2024-06-09T04:24:59.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-25T05:46:57.000Z (over 1 year ago)
- Last Synced: 2025-01-04T10:23:30.199Z (over 1 year ago)
- Language: Dart
- Size: 764 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# validomix

> From Strings to Objects Validomix validates all
The Validomix library is designed to enforce validation rules on strings,
triggered by various events, and to produce custom messages. It applies a
series of validation rules, such as size and format checks, to input strings
through a rule enforcement system.

Highlights:
- Validation of strings, numbers, or lists.
- Produce custom messages for errors and successes.
- Rules can be serialized as JSON.
- Invalid configurations are captured in metrics.
- Inventory of the rules is available.
- Fully extendable.
A few examples:
Create an inventory used to keep track of rules:
```dart
final optionsInventory = VxOptionsInventory()
```
Create a string rule:
```dart
final rule = VxStringRules.charsLessThan(name: 'test',
metricStoreHolder: metricStoreHolder, optionsInventory: optionsInventory,
failureProducer: SimpleMessageProducer('Too many characters'));
```
## Documentation and links
- [Code Maintenance :wrench:](MAINTENANCE.md)
- [Code Of Conduct](CODE_OF_CONDUCT.md)
- [Contributing :busts\_in\_silhouette: :construction:](CONTRIBUTING.md)
- [Architectural Decision Records :memo:](DECISIONS.md)
- [Contributors
:busts\_in\_silhouette:](https://github.com/flarebyte/validomix/graphs/contributors)
- [Dependencies](https://github.com/flarebyte/validomix/network/dependencies)
- [Glossary
:book:](https://github.com/flarebyte/overview/blob/main/GLOSSARY.md)
- [Software engineering principles
:gem:](https://github.com/flarebyte/overview/blob/main/PRINCIPLES.md)
- [Overview of Flarebyte.com ecosystem
:factory:](https://github.com/flarebyte/overview)
- [Dart dependencies](DEPENDENCIES.md)
- [Usage](USAGE.md)
- [Example](example/example.dart)
## Related
- [form\_validator](https://pub.dev/packages/form_validator)