1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: Allow spaces/special chars in application names

closes #534
This commit is contained in:
Ivar Conradi Østhus 2020-11-03 15:15:16 +01:00
parent 2ec816946f
commit 00ce76f9c5

View File

@ -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()