Comparing version 5.2.4 to 5.2.5-48-const-revolver-864db6644a2cddfada888c3cb979498b2107eabe
@@ -7,2 +7,6 @@ # Change Log | ||
## 5.2.5 - 2019-05-09 | ||
* Add a resolver for the const keyword [Lucian] | ||
## 5.2.4 - 2019-04-15 | ||
@@ -9,0 +13,0 @@ |
@@ -695,2 +695,8 @@ /* | ||
] | ||
}, | ||
// When resolving the const keyword, later values should override | ||
// earlier ones | ||
const: (values) => { | ||
return values[1] | ||
} | ||
@@ -697,0 +703,0 @@ }, options.resolvers) |
{ | ||
"name": "skhema", | ||
"version": "5.2.4", | ||
"version": "5.2.5-48-const-revolver-864db6644a2cddfada888c3cb979498b2107eabe", | ||
"description": "JSON Schema utility collection", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -621,3 +621,37 @@ [ | ||
} | ||
}, | ||
{ | ||
"schemas": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"foo": { | ||
"const": 1, | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ "foo" ] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"foo": { | ||
"const": 2, | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ "foo" ] | ||
} | ||
], | ||
"expected": { | ||
"type": "object", | ||
"properties": { | ||
"foo": { | ||
"const": 2, | ||
"type": "number" | ||
} | ||
}, | ||
"required": [ "foo" ] | ||
} | ||
} | ||
] |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
138953
4896
1