Skip to content
/ bag Public
generated from openpeeps/pistachio

Validate form input data in a fancy way. Written in Nim language

License

Notifications You must be signed in to change notification settings

openpeeps/bag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation


Validate HTTP input data in a fancy way.
๐Ÿ‘‘ Written in Nim language

nimble install bag

API reference
Github Actions | Github Actions

๐Ÿ˜ Key Features

  • Macro-based webform validation
  • Framework agnostic
  • i18n support
  • Based on Valido package
  • Open Source | MIT License
  • Written in ๐Ÿ‘‘ Nim language

Examples

# 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 err

For more examples, check in unittests

โค Contributions & Support

๐ŸŽฉ License

Bag | MIT license. Made by Humans from OpenPeeps.
Copyright ยฉ 2025 OpenPeeps & Contributors โ€” All rights reserved.

About

Validate form input data in a fancy way. Written in Nim language

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages