@unleash/client-specification
Advanced tools
Comparing version 3.3.1 to 4.0.0
{ | ||
"name": "@unleash/client-specification", | ||
"version": "3.3.1", | ||
"version": "4.0.0", | ||
"description": "A collection of test specifications to guide client implementations in various langugages", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -33,2 +33,3 @@ const Joi = require('joi'); | ||
weight: Joi.number().min(0).max(100000), | ||
stickiness: Joi.string().optional(), | ||
overrides: Joi.array().items( | ||
@@ -35,0 +36,0 @@ Joi |
@@ -150,2 +150,23 @@ { | ||
] | ||
}, | ||
{ | ||
"name": "Feature.Variants.E", | ||
"description": "Enabled", | ||
"enabled": false, | ||
"strategies": [ | ||
{ | ||
"name": "default", | ||
"parameters": {} | ||
} | ||
], | ||
"variants": [ | ||
{ | ||
"name": "variant1", | ||
"weight": 1, | ||
"payload": { | ||
"type": "string", | ||
"value": "val1" | ||
} | ||
} | ||
] | ||
} | ||
@@ -343,4 +364,15 @@ ] | ||
} | ||
}, | ||
{ | ||
"description": "Feature.Variants.E should be disabled", | ||
"context": { | ||
"userId": "0" | ||
}, | ||
"toggleName": "Feature.Variants.E", | ||
"expectedResult": { | ||
"name": "disabled", | ||
"enabled": false | ||
} | ||
} | ||
] | ||
} |
@@ -12,3 +12,4 @@ [ | ||
"10-flexible-rollout-strategy.json", | ||
"11-strategy-constraints-edge-cases.json" | ||
"11-strategy-constraints-edge-cases.json", | ||
"12-custom-stickiness.json" | ||
] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
78050
22
1993