vow-validate
vow-validate validates JSON payloads — require object keys and return 400 messages on failure. Install with vpm:
curl -fsSL https://install.vowlang.dev | shexport PATH="$HOME/.local/bin:$PATH"vpm add vow-validate vow-body-parser vow-web-servervpm installQuick start
Section titled “Quick start”import vval from vow_validate
fn main(caps: Caps) -> int { return match vval.require_key("{\"email\":\"a@b.c\"}", "email") { Ok(_v) => 0, Err(_msg) => 400, };}Run tests
Section titled “Run tests”cd vow-libs/vow-validate && vow test tests/validate.vow