Updated webServiceURL and allowed all characters for authenticationToken

This commit is contained in:
Alexander Cerutti
2019-11-22 22:40:47 +01:00
parent 1af7eb8163
commit 6eba4524a5

View File

@@ -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),