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 => {