
Validate HTTP input data in a fancy way.
๐ Written in Nim language
nimble install bag
- Macro-based webform validation
- Framework agnostic
- i18n support
- Based on Valido package
- Open Source |
MITLicense - Written in ๐ Nim language
# can be a seq/array containing a key/value tuple (string, string)
var data = [("email", "test@example.com"), ("password", "123admin")]
# create a new bag
bag data:
email: tEmail"auth.error.email"
*password: tPasswordStrength"account.password.weak"
# optional field, if filled checks the password strenth
do:
for err in inputBag.getErrors:
echo errFor more examples, check in unittests
- ๐ Found a bug? Create a new Issue
- ๐ Wanna help? Fork it!
- ๐ Get โฌ20 in cloud credits from Hetzner
Bag | MIT license. Made by Humans from OpenPeeps.
Copyright ยฉ 2025 OpenPeeps & Contributors โ All rights reserved.