Browse Source

allow timeout and retries settings for placeholder microservice

pull/909/head
missinglink 8 years ago
parent
commit
c8cedd5405
  1. 4
      schema.js

4
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

Loading…
Cancel
Save