rambler-digital-solutions / actix-web-validator

Rust library for providing validation mechanism to actix-web with Validator crate.
MIT License
101 stars 26 forks source link

how to custom error message #41

Closed male110 closed 1 year ago

male110 commented 1 year ago

如何自义错误信息? { "code":400, "message":"please input password" } or { "code":400, "message":{"password":"please input password","username":"please input username"} }

singulared commented 1 year ago

@male110 This might be helpful https://github.com/rambler-digital-solutions/actix-web-validator/issues/20#issuecomment-856078177