var joi = require("joi");

module.exports = {
  host: joi.string().hostname().required(),
  serviceType: joi.string().min(1).required(),
  metadata: joi.object(),
  serviceUri: joi.string().regex(/http(s)?:\/\/[A-Za-z0-9-\/+]+/i),
  onError: joi.func()
};

var joi = require("joi");

module.exports = {
  host: joi.string().required(),
  serviceType: joi.string().min(1).required(),
  metadata: joi.object(),
  serviceUri: joi.string().regex(/http(s)?:\/\/[A-Za-z0-9-\/+]+/i),
  onError: joi.func()
};

Allow port in host specification
Allow port in host specification
