1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00

fix: override field changed name to contextName

This commit is contained in:
ivaosthu 2019-02-04 14:04:58 +01:00 committed by Ivar Conradi Østhus
parent ba9d28b18d
commit f51500ec78
3 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ const variantsSchema = joi.object().keys({
joi
.object()
.keys({
field: joi.string().required(),
contextName: joi.string().required(),
values: joi.array().items(joi.string()),
})
.optional()

View File

@ -56,7 +56,7 @@ test('should be possible to define variant overrides', t => {
weight: 1,
overrides: [
{
field: 'userId',
contextName: 'userId',
values: ['123'],
},
],

View File

@ -250,7 +250,7 @@ test.serial('creates new feature toggle with variant overrides', async t => {
weight: 50,
overrides: [
{
field: 'userId',
contextName: 'userId',
values: ['123'],
},
],