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

fix: metric-schema for variant counts

This commit is contained in:
ivaosthu 2019-02-07 22:15:03 +01:00 committed by Ivar Conradi Østhus
parent 0f4d7df735
commit e317a65983

View File

@ -14,10 +14,7 @@ const countSchema = joi
.number()
.min(0)
.default(0),
variants: joi.object({
arg: joi.string(),
value: joi.number().min(0),
}),
variants: joi.object().pattern(joi.string(), joi.number().min(0)),
});
const clientMetricsSchema = joi