We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd4ff2 commit 92bfedaCopy full SHA for 92bfeda
spec/coercion.spec.js
@@ -397,6 +397,25 @@ describe('Type coercion', function () {
397
});
398
399
400
+ it.skip('should generate one error for type with coerceTypes option (issue #469)', function() {
401
+ var schema = {
402
+ "type": "number",
403
+ "minimum": 10
404
+ };
405
+
406
+ instances.forEach(function (ajv) {
407
+ var validate = ajv.compile(schema);
408
+ validate(9). should.equal(false);
409
+ validate.errors.length .should.equal(1);
410
411
+ validate(11). should.equal(true);
412
413
+ validate('foo'). should.equal(false);
414
415
+ });
416
417
418
419
function testRules(rules, cb) {
420
for (var toType in rules) {
421
for (var fromType in rules[toType]) {
0 commit comments