From 99d6c6ba11e73e87ccf07d7b425075d9038dd509 Mon Sep 17 00:00:00 2001 From: Stephen Hess Date: Fri, 28 Jul 2017 09:58:07 -0400 Subject: [PATCH] removed language service from schema --- schema.js | 5 ----- test/unit/schema.js | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/schema.js b/schema.js index 1c46f95a..3203bb7d 100644 --- a/schema.js +++ b/schema.js @@ -37,11 +37,6 @@ module.exports = Joi.object().keys({ timeout: Joi.number().integer().optional().default(250).min(0), retries: Joi.number().integer().optional().default(3).min(0), }).unknown(false).requiredKeys('url'), - language: Joi.object().keys({ - 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'), interpolation: Joi.object().keys({ url: Joi.string().uri({ scheme: /https?/ }), timeout: Joi.number().integer().optional().default(250).min(0), diff --git a/test/unit/schema.js b/test/unit/schema.js index ea331115..7c62f109 100644 --- a/test/unit/schema.js +++ b/test/unit/schema.js @@ -26,7 +26,7 @@ module.exports.tests.completely_valid = (test, common) => { placeholder: { url: 'http://localhost' }, - language: { + interpolation: { url: 'http://localhost' } }, @@ -543,7 +543,7 @@ module.exports.tests.api_services_validation = (test, common) => { module.exports.tests.service_validation = (test, common) => { // these tests apply for all the individual service definitions - const services = ['pip', 'placeholder', 'language', 'interpolation']; + const services = ['pip', 'placeholder', 'interpolation']; test('timeout and retries not specified should default to 250 and 3', (t) => { services.forEach(service => {