From c8cedd5405c2ed73d4978bc3e4a1fc0acb50f083 Mon Sep 17 00:00:00 2001 From: missinglink Date: Fri, 9 Jun 2017 15:20:59 +0200 Subject: [PATCH] allow timeout and retries settings for placeholder microservice --- schema.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/schema.js b/schema.js index 6c9de60c..df544677 100644 --- a/schema.js +++ b/schema.js @@ -35,7 +35,9 @@ module.exports = Joi.object().keys({ retries: Joi.number().integer().optional().default(3).min(0), }).unknown(false).requiredKeys('url'), 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).default({}) // default api.services to an empty object