Expand description
§vld-warp — Warp integration for vld
Validation filters for Warp.
Validates request data against vld schemas and rejects with structured
JSON errors on failure.
§Filters
| Filter / Function | Source |
|---|---|
vld_json::<T>() | JSON body |
vld_query::<T>() | Query string |
vld_form::<T>() | URL-encoded form body |
[vld_param::<T>(name)] | Single path segment |
[vld_path::<T>(names)] | All remaining path segments (tail) |
[validate_path_params::<T>(pairs)] | Pre-extracted path params |
vld_headers::<T>() | HTTP headers |
vld_cookie::<T>() | Cookie values |
Modules§
- prelude
- Prelude — import everything you need.
Structs§
- Invalid
Json - Rejection when JSON parsing fails.
- Validation
Failed - Rejection when vld validation fails.
Functions§
- handle_
rejection - Recovery handler that converts vld rejections into JSON responses.
- validate_
path_ params - Validate pre-extracted path parameter pairs against a vld schema.
- vld_
cookie - Warp filter that extracts and validates cookies from the
Cookieheader. - vld_
form - Warp filter that extracts and validates a URL-encoded form body.
- vld_
headers - Warp filter that extracts and validates HTTP headers.
- vld_
json - Warp filter that extracts and validates a JSON body.
- vld_
param - Warp filter that extracts and validates a single path segment.
- vld_
path - Warp filter that extracts and validates all remaining path segments.
- vld_
query - Warp filter that extracts and validates query parameters.