Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to achieve customization and internationalization of validator error prompts #568

Open
RWDai opened this issue May 5, 2023 · 0 comments
Labels
question Further information is requested

Comments

@RWDai
Copy link

RWDai commented May 5, 2023

pub struct Test {
    #[oai(validator(min_length = "2",errmsg="{field_name} dont have minlength {len}"))]
    pub ak: String,
}

can it work?

@RWDai RWDai added the question Further information is requested label May 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant