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

string hex characters only #547

Closed
Zambonilli opened this issue Feb 9, 2015 · 4 comments
Closed

string hex characters only #547

Zambonilli opened this issue Feb 9, 2015 · 4 comments
Assignees
Labels
feature New functionality or improvement
Milestone

Comments

@Zambonilli
Copy link

With the use of MongoDB in a lot of nodejs applications, a string hex validator would be really useful. This would allow an application to validate a mongo id w/o having to call the db with Joi.string().length(24).hex()

@Marsup
Copy link
Collaborator

Marsup commented Feb 9, 2015

I've already contributed to joi-objectid to make it right, I'm not sure it's worth an extra function considering the simplicity of it.

@Marsup Marsup added the request label Feb 9, 2015
@Marsup Marsup self-assigned this Feb 9, 2015
@Zambonilli
Copy link
Author

Hex seems like a more reusable validator function. IE: mac addresses, serial numbers, etc and it's not another package to have to include. You can close out if you want since there's already a solution and it's a subjective decision.

@Marsup
Copy link
Collaborator

Marsup commented Feb 9, 2015

These often have dashes in it. Let me think about it.

@Marsup Marsup closed this as completed in 499d27e Feb 15, 2015
@Marsup Marsup added this to the 6.0 milestone Feb 15, 2015
@hueniverse hueniverse added feature New functionality or improvement and removed request labels Sep 19, 2019
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New functionality or improvement
Projects
None yet
Development

No branches or pull requests

3 participants