tlivings / enjoi

Converts a JSON schema to a Joi schema.
Apache License 2.0
283 stars 57 forks source link

Support UUID validation #39

Closed dvaccabu closed 6 years ago

dvaccabu commented 7 years ago

To validate UUID (GUID), It is only add the case in the switch of current.format case 'uuid': joischema = Joi.string().guid(); break;

This is not supported today.

tlivings commented 6 years ago

This is supported through using the refineType option and a format attribute.