@unleash/client-specification
Advanced tools
Comparing version 4.2.0 to 4.2.1
{ | ||
"name": "@unleash/client-specification", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "A collection of test specifications to guide client implementations in various languages", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -30,2 +30,3 @@ ![Build](https://github.com/Unleash/client-specification/workflows/Build/badge.svg) | ||
"14-constraint-semver-operators.json" | ||
"15-global-constraints.json" | ||
] | ||
@@ -32,0 +33,0 @@ ``` |
@@ -10,5 +10,5 @@ const Joi = require('joi'); | ||
appName: Joi.string(), | ||
properties: Joi.object().pattern(/\w+/, Joi.string()), | ||
properties: Joi.object().pattern(/\w+/, Joi.string().allow(null)), | ||
}) | ||
module.exports = schema; |
@@ -369,2 +369,38 @@ { | ||
] | ||
}, | ||
{ | ||
"name": "F8.missing-field.IN", | ||
"description": "missing field", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "default", | ||
"parameters": {}, | ||
"constraints": [ | ||
{ | ||
"contextName": "customFieldMissing", | ||
"operator": "IN", | ||
"values": ["s1"] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "F8.missing-field.NOT_IN", | ||
"description": "missing field", | ||
"enabled": true, | ||
"strategies": [ | ||
{ | ||
"name": "default", | ||
"parameters": {}, | ||
"constraints": [ | ||
{ | ||
"contextName": "customFieldMissing", | ||
"operator": "NOT_IN", | ||
"values": ["s1"] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
@@ -738,4 +774,36 @@ | ||
"expectedResult": false | ||
}, | ||
{ | ||
"description": "F8.missing-field.IN should return false", | ||
"context": {}, | ||
"toggleName": "F8.missing-field.IN", | ||
"expectedResult": false | ||
}, | ||
{ | ||
"description": "F8.missing-field.IN should return true when present", | ||
"context": { | ||
"properties": { | ||
"customFieldMissing": "s1" | ||
} | ||
}, | ||
"toggleName": "F8.missing-field.IN", | ||
"expectedResult": true | ||
}, | ||
{ | ||
"description": "F8.missing-field.NOT_IN should return true", | ||
"context": {}, | ||
"toggleName": "F8.missing-field.NOT_IN", | ||
"expectedResult": true | ||
}, | ||
{ | ||
"description": "F8.missing-field.NOT_IN should return true when null", | ||
"context": { | ||
"properties": { | ||
"customFieldMissing": null | ||
} | ||
}, | ||
"toggleName": "F8.missing-field.NOT_IN", | ||
"expectedResult": true | ||
} | ||
] | ||
} |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
122875
28
3386
85
0