mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 16:25:21 +00:00
Updated webServiceURL and allowed all characters for authenticationToken
This commit is contained in:
@@ -84,8 +84,8 @@ const supportedOptions = Joi.object().keys({
|
|||||||
description: Joi.string(),
|
description: Joi.string(),
|
||||||
userInfo: Joi.alternatives(Joi.object().unknown(), Joi.array()),
|
userInfo: Joi.alternatives(Joi.object().unknown(), Joi.array()),
|
||||||
// parsing url as set of words and nums followed by dots, optional port and any possible path after
|
// parsing url as set of words and nums followed by dots, optional port and any possible path after
|
||||||
webServiceURL: Joi.string().regex(/https?:\/\/(?:(?:[a-z0-9]+\.?)+(?::\d)?(?:\/[\S]+)*)*/),
|
webServiceURL: Joi.string().regex(/https?:\/\/(?:[a-z0-9]+\.?)+(?::\d{2,})?(?:\/[\S]+)*/),
|
||||||
authenticationToken: Joi.string().token().min(16),
|
authenticationToken: Joi.string().min(16),
|
||||||
sharingProhibited: Joi.boolean(),
|
sharingProhibited: Joi.boolean(),
|
||||||
backgroundColor: Joi.string().min(10).max(16),
|
backgroundColor: Joi.string().min(10).max(16),
|
||||||
foregroundColor: Joi.string().min(10).max(16),
|
foregroundColor: Joi.string().min(10).max(16),
|
||||||
|
|||||||
Reference in New Issue
Block a user