mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 22:25:24 +00:00
fix: Remove TLD check on Joi email schema for URLs
This commit is contained in:
@@ -114,7 +114,12 @@ const URLs = Joi.object<URLs>({
|
||||
accessibilityURL: Joi.string().regex(URL_REGEX),
|
||||
addOnURL: Joi.string().regex(URL_REGEX),
|
||||
bagPolicyURL: Joi.string().regex(URL_REGEX),
|
||||
contactVenueEmail: Joi.string().email(),
|
||||
/**
|
||||
* Joi's email schema validates email TLDs and only allows TLDs that are registered in the IANA Registry.
|
||||
* This also requires NodeJS runtime to work (even though can be enabled client side, but discouraged)
|
||||
* Reference - https://github.com/hapijs/joi/issues/2390
|
||||
*/
|
||||
contactVenueEmail: Joi.string().email({ tlds: false }),
|
||||
contactVenuePhoneNumber: Joi.string(),
|
||||
contactVenueWebsite: Joi.string().regex(URL_REGEX),
|
||||
directionsInformationURL: Joi.string().regex(URL_REGEX),
|
||||
|
||||
Reference in New Issue
Block a user