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()
};

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()
};

--- 
+++ 
@@ -1,7 +1,7 @@
 var joi = require("joi");
 
 module.exports = {
-  host: joi.string().hostname().required(),
+  host: joi.string().required(),
   serviceType: joi.string().min(1).required(),
   metadata: joi.object(),
   serviceUri: joi.string().regex(/http(s)?:\/\/[A-Za-z0-9-\/+]+/i),
Allow port in host specification
