Skip to content
New issue

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

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

Already on GitHub? # to your account

Support custom validation messages #11

Open
undefined-moe opened this issue Jul 6, 2022 · 0 comments
Open

Support custom validation messages #11

undefined-moe opened this issue Jul 6, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@undefined-moe
Copy link
Contributor

things like assert.

Schema.object({
  host: Schema.string().validationMessage('You must provide a valid hostname'),
  port: Schema.port().validationMessage('You must provide a port number'),
})
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants