isvalid 4.2.9 → 4.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/validate.js CHANGED
@@ -467,8 +467,6 @@ const validateAny = async (data, schema, options, keyPath, validatedData) => {
467
467
 
468
468
  if (schema.type !== undefined) {
469
469
  switch (typeName(schema.type).toLowerCase()) {
470
- case 'any':
471
- break;
472
470
  case 'object':
473
471
  data = await validateObject(data, schema, options, keyPath, validatedData);
474
472
  break;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isvalid",
3
- "version": "4.2.9",
3
+ "version": "4.2.10",
4
4
  "description": "Async JSON validation library for node.js.",
5
5
  "main": "./index.js",
6
6
  "type": "module",
package/test/validate.js CHANGED
@@ -380,11 +380,6 @@ describe('validate', function() {
380
380
  .and.to.have.property('validator', 'type');
381
381
  });
382
382
  });
383
- describe('any validator', function() {
384
- it('should come back with same input as output.', () => {
385
- return expect(isvalid({ some: 'data' }, 'any')).to.eventually.eql({ some: 'data' });
386
- });
387
- });
388
383
  describe('object validator', function() {
389
384
  commonTests.all(Object, {}, 123);
390
385
  it('should come back with same input if sub-schema is not provided.', () => {