From 00ce76f9c58cb7d7be9bbbd2dd651f962591ea34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 3 Nov 2020 15:15:16 +0100 Subject: [PATCH] fix: Allow spaces/special chars in application names closes #534 --- lib/routes/admin-api/metrics-schema.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/routes/admin-api/metrics-schema.js b/lib/routes/admin-api/metrics-schema.js index e6ca5b57f7..95f074c721 100644 --- a/lib/routes/admin-api/metrics-schema.js +++ b/lib/routes/admin-api/metrics-schema.js @@ -1,13 +1,12 @@ 'use strict'; const joi = require('joi'); -const { nameType } = require('./util'); const applicationSchema = joi .object() .options({ stripUnknown: false }) .keys({ - appName: nameType, + appName: joi.string().required(), sdkVersion: joi.string().optional(), strategies: joi .array()