|
|
@ -35,7 +35,9 @@ module.exports = Joi.object().keys({ |
|
|
|
retries: Joi.number().integer().optional().default(3).min(0), |
|
|
|
retries: Joi.number().integer().optional().default(3).min(0), |
|
|
|
}).unknown(false).requiredKeys('url'), |
|
|
|
}).unknown(false).requiredKeys('url'), |
|
|
|
placeholder: Joi.object().keys({ |
|
|
|
placeholder: Joi.object().keys({ |
|
|
|
url: Joi.string().uri({ scheme: /https?/ }) |
|
|
|
url: Joi.string().uri({ scheme: /https?/ }), |
|
|
|
|
|
|
|
timeout: Joi.number().integer().optional().default(250).min(0), |
|
|
|
|
|
|
|
retries: Joi.number().integer().optional().default(3).min(0), |
|
|
|
}).unknown(false).requiredKeys('url') |
|
|
|
}).unknown(false).requiredKeys('url') |
|
|
|
}).unknown(false).default({}) // default api.services to an empty object
|
|
|
|
}).unknown(false).default({}) // default api.services to an empty object
|
|
|
|
|
|
|
|
|
|
|
|