1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00

Merge pull request #246 from Unleash/lax_client_schema

Strip uknown fields in client requests. closes #245
This commit is contained in:
Ivar Conradi Østhus 2017-06-29 11:16:20 +02:00 committed by GitHub
commit 5dd460ce7d
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
const joi = require('joi');
const clientMetricsSchema = joi.object().keys({
const clientMetricsSchema = joi.object().options({ stripUnknown: true }).keys({
appName: joi.string().required(),
instanceId: joi.string().required(),
bucket: joi.object().required().keys({

View File

@ -2,7 +2,7 @@
const joi = require('joi');
const clientRegisterSchema = joi.object().keys({
const clientRegisterSchema = joi.object().options({ stripUnknown: true }).keys({
appName: joi.string().required(),
instanceId: joi.string().required(),
sdkVersion: joi.string().optional(),