domainstack-envelope
Convert domainstack validation errors to error-envelope HTTP error format. Part of the domainstack full-stack validation ecosystem.
Usage
Add this to your Cargo.toml:
[]
= "1.0"
= "1.0"
Convert validation errors to error-envelope format:
use ;
use IntoEnvelopeError;
use Error;
Error Format
Converts structured validation errors to error-envelope's standard HTTP error format:
Features
- Structured field paths - Nested fields like
user.address.citymap correctly - Multiple violations per field - All errors preserved
- HTTP status codes - Returns 400 Bad Request for validation errors
- Standard format - Compatible with error-envelope ecosystem
Framework Integration
Use with framework adapters for automatic error conversion:
// Axum
use ;
async
// Actix-web
use ;
async
Documentation
For complete documentation, examples, and usage guides, see:
License
Apache 2.0