Comparing version 5.2.7 to 5.2.8-uniq-enums-2f8725cde8fc23de39346860a4fc283ada408eab
@@ -7,2 +7,6 @@ # Change Log | ||
## 5.2.8 - 2019-11-27 | ||
* Ensure values in "enum" are unique [Juan Cruz Viotti] | ||
## 5.2.7 - 2019-11-27 | ||
@@ -9,0 +13,0 @@ |
@@ -1172,2 +1172,7 @@ /* | ||
} | ||
if (key === 'enum') { | ||
return uniq(sourceValue) | ||
} | ||
if (key === 'additionalProperties') { | ||
@@ -1242,2 +1247,7 @@ if (isUndefined(sourceValue) && | ||
} | ||
if (key === 'enum') { | ||
return uniq(sourceValue) | ||
} | ||
if (key === 'additionalProperties') { | ||
@@ -1244,0 +1254,0 @@ if (isUndefined(sourceValue) && |
{ | ||
"name": "skhema", | ||
"version": "5.2.7", | ||
"version": "5.2.8-uniq-enums-2f8725cde8fc23de39346860a4fc283ada408eab", | ||
"description": "JSON Schema utility collection", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
143437
5123
1